function SystemMenuBlock::__construct
Constructs new SystemMenuBlock.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $menu_storage: The menu storage.
File
-
core/
modules/ system/ src/ Plugin/ Derivative/ SystemMenuBlock.php, line 30
Class
- SystemMenuBlock
- Provides block plugin definitions for custom menus.
Namespace
Drupal\system\Plugin\DerivativeCode
public function __construct(EntityStorageInterface $menu_storage) {
$this->menuStorage = $menu_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.