function WorkspaceSwitcherBlock::create
Instantiates a new instance of the implementing class using autowiring.
Return value
static
Overrides PluginBase::create
File
-
core/
modules/ workspaces/ src/ Plugin/ Block/ WorkspaceSwitcherBlock.php, line 64
Class
- WorkspaceSwitcherBlock
- Provides a 'Workspace switcher' block.
Namespace
Drupal\workspaces\Plugin\BlockCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('form_builder'), $container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.