UncleCheese\BetterButtons\Extensions\BetterButtonDataObject::instantiateButton
Transforms a given button class name into an actual object.
Signature
protected function instantiateButton(string
$className )
Parameters
$className
— string- The class of the button
Returns
- BetterButton
Errors/Exceptions
-
Exception
- If the requested button type does not exist