public function ModerationDashboardAccess::__construct in Moderation Dashboard 2.0.x
Same name in this branch
- 2.0.x src/Access/ModerationDashboardAccess.php \Drupal\moderation_dashboard\Access\ModerationDashboardAccess::__construct()
- 2.0.x src/Plugin/Condition/ModerationDashboardAccess.php \Drupal\moderation_dashboard\Plugin\Condition\ModerationDashboardAccess::__construct()
Same name and namespace in other branches
- 8 src/Plugin/Condition/ModerationDashboardAccess.php \Drupal\moderation_dashboard\Plugin\Condition\ModerationDashboardAccess::__construct()
Constructor for DI.
Parameters
array $configuration: A config array.
string $plugin_id: Contains plugin Id.
mixed $plugin_definition: Contains plugin definition.
\Drupal\user\UserStorageInterface $user_storage: Contains User entity storage interface.
Overrides ConditionPluginBase::__construct
File
- src/
Plugin/ Condition/ ModerationDashboardAccess.php, line 44
Class
- ModerationDashboardAccess
- Provides a 'Moderation Dashboard Access' condition.
Namespace
Drupal\moderation_dashboard\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, UserStorageInterface $user_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->userStorage = $user_storage;
}