public function ViewsAccessCallback::__construct in Views Access Callback 8
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\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides PluginBase::__construct
File
- src/
Plugin/ views/ access/ ViewsAccessCallback.php, line 50
Class
- ViewsAccessCallback
- Access plugin that provides permission-based access control.
Namespace
Drupal\views_access_callback\Plugin\views\accessCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
}