Merge pull request #11369 from mooror/getRemoveAction-access-modifier-update

API Made the GridFieldDeleteAction method getRemoveAction() protected
This commit is contained in:
Guy Sartorelli 2024-09-12 08:56:12 +12:00 committed by GitHub
commit 52e4574a9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -225,7 +225,7 @@ class GridFieldDeleteAction extends AbstractGridFieldComponent implements GridFi
* @param string $columnName * @param string $columnName
* @return GridField_FormAction|null * @return GridField_FormAction|null
*/ */
private function getRemoveAction($gridField, $record, $columnName) protected function getRemoveAction($gridField, $record, $columnName)
{ {
if ($this->getRemoveRelation()) { if ($this->getRemoveRelation()) {
$this->checkForRequiredMethod($record, 'canEdit'); $this->checkForRequiredMethod($record, 'canEdit');