public function Permission::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Plugin/views/access/Permission.php \Drupal\user\Plugin\views\access\Permission::__construct()
Constructs a Permission object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\user\PermissionHandlerInterface $permission_handler: The permission handler.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides PluginBase::__construct
File
- core/
modules/ user/ src/ Plugin/ views/ access/ Permission.php, line 66 - Contains \Drupal\user\Plugin\views\access\Permission.
Class
- Permission
- Access plugin that provides permission-based access control.
Namespace
Drupal\user\Plugin\views\accessCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PermissionHandlerInterface $permission_handler, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->permissionHandler = $permission_handler;
$this->moduleHandler = $module_handler;
}