class EmptyAccessControl in Group 2.0.x
Provides a default access control handler.
In case a plugin does not define a handler, the empty class is used so that others can still decorate the plugin-specific service.
Hierarchy
- class \Drupal\group\Plugin\Group\RelationHandler\EmptyAccessControl implements AccessControlInterface uses AccessControlTrait
Expanded class hierarchy of EmptyAccessControl
File
- src/
Plugin/ Group/ RelationHandler/ EmptyAccessControl.php, line 16
Namespace
Drupal\group\Plugin\Group\RelationHandlerView source
class EmptyAccessControl implements AccessControlInterface {
use AccessControlTrait;
/**
* Constructs a new EmptyAccessControl.
*
* @param \Drupal\group\Plugin\Group\RelationHandler\AccessControlInterface $parent
* The parent access control handler.
*/
public function __construct(AccessControlInterface $parent) {
$this->parent = $parent;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessControlTrait:: |
protected | property | The plugin's permission provider. | |
AccessControlTrait:: |
protected | function | Checks the provided permission alongside the admin permission. | |
AccessControlTrait:: |
public | function | 1 | |
AccessControlTrait:: |
public | function | 1 | |
AccessControlTrait:: |
public | function | ||
AccessControlTrait:: |
public | function | 1 | |
AccessControlTrait:: |
public | function | 1 | |
EmptyAccessControl:: |
public | function | Constructs a new EmptyAccessControl. | |
RelationHandlerTrait:: |
protected | property | The plugin definition. | |
RelationHandlerTrait:: |
protected | property | The entity type manager. | |
RelationHandlerTrait:: |
protected | property | The group relation manager. | |
RelationHandlerTrait:: |
protected | property | The parent relation handler in the decorator chain. | |
RelationHandlerTrait:: |
protected | property | The plugin ID as read from the definition. | |
RelationHandlerTrait:: |
protected | function | Gets the entity type manager service. | |
RelationHandlerTrait:: |
protected | function | Gets the group relation manager service. | |
RelationHandlerTrait:: |
public | function | Aliased as: traitInit |