UncleCheese\BetterButtons\Extensions\BetterButtonDataObject::isCustomActionAllowed
Checks if a custom action is allowed to be called against a model.
Prevents security risk of calling arbitrary public methods on the DataObject. Looks at: <code> private static $better_buttons_actions = array () </code>
Signature
public function isCustomActionAllowed(string
$action )
Parameters
$action
— string- The name of the action
Returns
- boolean