public static function OgMenuBlock::create in Organic Groups Menu (OG Menu) 8
Same name in this branch
- 8 src/Plugin/Derivative/OgMenuBlock.php \Drupal\og_menu\Plugin\Derivative\OgMenuBlock::create()
- 8 src/Plugin/Block/OgMenuBlock.php \Drupal\og_menu\Plugin\Block\OgMenuBlock::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- src/
Plugin/ Derivative/ OgMenuBlock.php, line 43 - Contains \Drupal\system\Plugin\Derivative\SystemMenuBlock.
Class
- OgMenuBlock
- Provides block plugin definitions for custom menus.
Namespace
Drupal\og_menu\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('entity_type.manager')
->getStorage('ogmenu'));
}