MenuBlock.php in Colossal Menu 2.x
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\colossal_menu\Plugin\DerivativeFile
src/Plugin/Derivative/MenuBlock.phpView source
<?php
namespace Drupal\colossal_menu\Plugin\Derivative;
use Drupal\system\Plugin\Derivative\SystemMenuBlock;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Provides block plugin definitions for custom menus.
*
* @see \Drupal\colossal_menu\Plugin\Block\MenuBlock
*/
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'));
}
}