From d710990e13f2ce430651538f2b746f36aa189347 Mon Sep 17 00:00:00 2001 From: GuySartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 25 Jun 2021 13:21:49 +1200 Subject: [PATCH] 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(). --- src/Forms/GridField/GridField.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Forms/GridField/GridField.php b/src/Forms/GridField/GridField.php index f5b76cd07..4717a849a 100644 --- a/src/Forms/GridField/GridField.php +++ b/src/Forms/GridField/GridField.php @@ -438,6 +438,8 @@ class GridField extends FormField */ public function FieldHolder($properties = []) { + $this->extend('onBeforeRenderHolder', $this, $properties); + $columns = $this->getColumns(); $list = $this->getManipulatedList();