Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AclCondition.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  const NAME = 'acl';
19 
23  private $authorization;
24 
28  public function __construct(\Magento\Framework\AuthorizationInterface $authorization)
29  {
30  $this->authorization = $authorization;
31  }
32 
36  public function isVisible(array $arguments)
37  {
38  return $this->authorization->isAllowed($arguments['acl']);
39  }
40 
44  public function getName()
45  {
46  return self::NAME;
47  }
48 }
__construct(\Magento\Framework\AuthorizationInterface $authorization)
$arguments