public function DomainMenuAccessMenuBlock::__construct in Domain Menu Access 8
Constructs new SystemMenuBlock.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $menu_storage: The menu storage.
\Drupal\Core\Config\ImmutableConfig $config: Domain access settings.
Overrides SystemMenuBlock::__construct
File
- src/
Plugin/ Derivative/ DomainMenuAccessMenuBlock.php, line 32
Class
- DomainMenuAccessMenuBlock
- Provides block plugin definitions for domain access menus.
Namespace
Drupal\domain_menu_access\Plugin\DerivativeCode
public function __construct(EntityStorageInterface $menu_storage, ImmutableConfig $config) {
parent::__construct($menu_storage);
$this->config = $config;
}