public static function ModerationDashboardAccess::create in Moderation Dashboard 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Condition/ModerationDashboardAccess.php \Drupal\moderation_dashboard\Plugin\Condition\ModerationDashboardAccess::create()
Create method for DI.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: Contains container interface object.
array $configuration: A config array.
string $plugin_id: Contains plugin Id.
mixed $plugin_definition: Contains plugin definition.
Return value
static
Overrides ContainerFactoryPluginInterface::create
File
- src/
Plugin/ Condition/ ModerationDashboardAccess.php, line 63
Class
- ModerationDashboardAccess
- Provides a 'Moderation Dashboard Access' condition.
Namespace
Drupal\moderation_dashboard\Plugin\ConditionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('entity_type.manager')
->getStorage('user'));
}