function AddModeration::create
Same name in other branches
- 11.x core/modules/content_moderation/src/Plugin/ConfigAction/AddModeration.php \Drupal\content_moderation\Plugin\ConfigAction\AddModeration::create()
Overrides ContainerFactoryPluginInterface::create
File
-
core/
modules/ content_moderation/ src/ Plugin/ ConfigAction/ AddModeration.php, line 32
Class
Namespace
Drupal\content_moderation\Plugin\ConfigActionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : static {
assert(is_array($plugin_definition));
$target_entity_type = $plugin_definition['target_entity_type'];
return new static($container->get(ConfigManagerInterface::class), $container->get(EntityTypeManagerInterface::class), $plugin_id, $target_entity_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.