public static function MicrositePluginTrait::create in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x modules/entity_hierarchy_microsite/src/Plugin/MicrositePluginTrait.php \Drupal\entity_hierarchy_microsite\Plugin\MicrositePluginTrait::create()
1 call to MicrositePluginTrait::create()
- MicrositeLogoBranding::create in modules/
entity_hierarchy_microsite/ src/ Plugin/ Block/ MicrositeLogoBranding.php - Creates an instance of the plugin.
File
- modules/
entity_hierarchy_microsite/ src/ Plugin/ MicrositePluginTrait.php, line 58
Class
- MicrositePluginTrait
- Defines a trait for microsite plugin functionality.
Namespace
Drupal\entity_hierarchy_microsite\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = new static($configuration, $plugin_id, $plugin_definition);
return $instance
->setChildOfMicrositeLookup($container
->get('entity_hierarchy_microsite.microsite_lookup'))
->setEntityFieldManager($container
->get('entity_field.manager'));
}