Merge pull request #2274 from creative-commoners/pulls/4.3/factory-extensibility

NEW Add update extension hooks for LinkFormFactory subclasses
This commit is contained in:
Guy Marriott 2018-11-11 23:09:24 +13:00 committed by GitHub
commit 814922747a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,8 @@ class InternalLinkFormFactory extends LinkFormFactory
$fields->insertAfter('PageID', TextField::create('Text', _t(__CLASS__.'.LINKTEXT', 'Link text')));
}
$this->extend('updateFormFields', $fields, $controller, $name, $context);
return $fields;
}