mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 14:56:51 +02:00
Make ProcessPageEditLink::getFilesPage() method hookable per @Toutouwai
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
* @property int $noLinkTextEdit 3.0.211+
|
* @property int $noLinkTextEdit 3.0.211+
|
||||||
*
|
*
|
||||||
* @method InputfieldForm buildForm($currentValue, $currentText)
|
* @method InputfieldForm buildForm($currentValue, $currentText)
|
||||||
|
* @method array getFilesPage(Page $page, $prefix = '') Hookable only in 3.0.222+
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -560,12 +561,14 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
|
|||||||
/**
|
/**
|
||||||
* Get array of info about files attached to given Page, including any repeater items
|
* Get array of info about files attached to given Page, including any repeater items
|
||||||
*
|
*
|
||||||
|
* Hookable in 3.0.222+ only
|
||||||
|
*
|
||||||
* @param Page $page
|
* @param Page $page
|
||||||
* @param string $prefix
|
* @param string $prefix Optional prefix to prepend to "Field label:" portion of label
|
||||||
* @return array Associative array of "/url/to/file.pdf" => "Field label: basename"
|
* @return array Associative array of "/url/to/file.pdf" => "Field label: basename"
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function getFilesPage(Page $page, $prefix = '') {
|
protected function ___getFilesPage(Page $page, $prefix = '') {
|
||||||
$files = array();
|
$files = array();
|
||||||
foreach($page->template->fieldgroup as $field) {
|
foreach($page->template->fieldgroup as $field) {
|
||||||
/** @var Fieldtype $type */
|
/** @var Fieldtype $type */
|
||||||
|
Reference in New Issue
Block a user