You are here

class MenuBlock in Colossal Menu 8

Same name in this branch
  1. 8 src/Plugin/Derivative/MenuBlock.php \Drupal\colossal_menu\Plugin\Derivative\MenuBlock
  2. 8 src/Plugin/Block/MenuBlock.php \Drupal\colossal_menu\Plugin\Block\MenuBlock
Same name and namespace in other branches
  1. 2.x src/Plugin/Derivative/MenuBlock.php \Drupal\colossal_menu\Plugin\Derivative\MenuBlock

Provides block plugin definitions for custom menus.

Hierarchy

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\Derivative
View 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

Namesort descending Modifiers Type Description Overrides
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
MenuBlock::create public static function Creates a new class instance. Overrides SystemMenuBlock::create
SystemMenuBlock::$menuStorage protected property The menu storage.
SystemMenuBlock::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions
SystemMenuBlock::__construct public function Constructs new SystemMenuBlock.