final class Actions
{
...
public function add(string $pageName, Action|string $actionNameOrObject): self
{
return $this->doAddAction($pageName, $actionNameOrObject);
}
...
}
$obj = new Actions;
$obj->add(Crud::PAGE_EDIT, Action::SAVE_AND_CONTINUE, function (Action $action)
{
return $action->setIcon(false)->setLabel(false);
})
Method add does not have third parameter