public function ModerationDashboardAccess::__construct in Moderation Dashboard 8
Same name and namespace in other branches
- 2.0.x 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 39
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;
}