class MenuBlock in Colossal Menu 2.x
Same name in this branch
- 2.x src/Plugin/Derivative/MenuBlock.php \Drupal\colossal_menu\Plugin\Derivative\MenuBlock
- 2.x src/Plugin/Block/MenuBlock.php \Drupal\colossal_menu\Plugin\Block\MenuBlock
Same name and namespace in other branches
- 8 src/Plugin/Derivative/MenuBlock.php \Drupal\colossal_menu\Plugin\Derivative\MenuBlock
Provides block plugin definitions for custom menus.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\system\Plugin\Derivative\SystemMenuBlock implements ContainerDeriverInterface
- class \Drupal\colossal_menu\Plugin\Derivative\MenuBlock
- class \Drupal\system\Plugin\Derivative\SystemMenuBlock implements ContainerDeriverInterface
Expanded class hierarchy of MenuBlock
See also
\Drupal\colossal_menu\Plugin\Block\MenuBlock
File
- src/
Plugin/ Derivative/ MenuBlock.php, line 13
Namespace
Drupal\colossal_menu\Plugin\DerivativeView source
class MenuBlock extends SystemMenuBlock {
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('entity_type.manager')
->getStorage('colossal_menu'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
MenuBlock:: |
public static | function |
Creates a new class instance. Overrides SystemMenuBlock:: |
|
SystemMenuBlock:: |
protected | property | The menu storage. | |
SystemMenuBlock:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |
|
SystemMenuBlock:: |
public | function | Constructs new SystemMenuBlock. |