src/Bridge/Twig/Extension/AdminExtension.php
public function isAdminActionAllowed(ViewInterface $view, string $actionName)
    {
        $configuration = $view->getAdminConfiguration();

        return key_exists($actionName, $configuration->getParameter('actions'));
    }
public function isAdminActionAllowed(ViewInterface $view, string $actionName)
    {
        $configuration = $view->getAdminConfiguration();

        return key_exists($actionName, $configuration->getParameter('actions'));
    }
public function isAdminActionAllowed ( ViewInterface $ view , string $ actionName ) { $ configuration = $ view -> getAdminConfiguration ( ) ; return key_exists ( $ actionName , $ configuration -> getParameter ( 'actions' ) ) ; }
Return true if the given action is allowed for the given Admin.

@param ViewInterface $view
@param string        $actionName

@return bool
Return true if the given action is allowed for the given Admin .