public static function MicrositeMenuItemDeriver::create in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x modules/entity_hierarchy_microsite/src/Plugin/Deriver/MicrositeMenuItemDeriver.php \Drupal\entity_hierarchy_microsite\Plugin\Deriver\MicrositeMenuItemDeriver::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
- modules/
entity_hierarchy_microsite/ src/ Plugin/ Deriver/ MicrositeMenuItemDeriver.php, line 35
Class
- MicrositeMenuItemDeriver
- Defines a class for deriving menu links from a tree.
Namespace
Drupal\entity_hierarchy_microsite\Plugin\DeriverCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('entity_hierarchy_microsite.menu_link_discovery'));
}