ENH Provide onBeforeRenderHolder extension hook.

GridField has onBeforeRender in its Field method, but that hardly ever gets called.
This commit adds the onBeforeRenderHolder extension hook that is normally available via FormField::FieldHolder().
This commit is contained in:
GuySartorelli 2021-06-25 13:21:49 +12:00 committed by GitHub
parent bcddf557e1
commit d710990e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -438,6 +438,8 @@ class GridField extends FormField
*/
public function FieldHolder($properties = [])
{
$this->extend('onBeforeRenderHolder', $this, $properties);
$columns = $this->getColumns();
$list = $this->getManipulatedList();