class BazAdminPermissionProvider in Group 2.0.x
Alters admin permission for a specific plugin to original + 'baz'.
Hierarchy
- class \Drupal\group_test_plugin_alter\Plugin\Group\RelationHandler\BazAdminPermissionProvider implements PermissionProviderInterface uses PermissionProviderTrait
Expanded class hierarchy of BazAdminPermissionProvider
1 string reference to 'BazAdminPermissionProvider'
- group_test_plugin_alter.services.yml in tests/
modules/ group_test_plugin_alter/ group_test_plugin_alter.services.yml - tests/modules/group_test_plugin_alter/group_test_plugin_alter.services.yml
2 services use BazAdminPermissionProvider
- group.relation_handler_decorator.permission_provider.baz.entity_as_content in tests/
modules/ group_test_plugin_alter/ group_test_plugin_alter.services.yml - Drupal\group_test_plugin_alter\Plugin\Group\RelationHandler\BazAdminPermissionProvider
- group.relation_handler_decorator.permission_provider.baz.node_as_content in tests/
modules/ group_test_plugin_alter/ group_test_plugin_alter.services.yml - Drupal\group_test_plugin_alter\Plugin\Group\RelationHandler\BazAdminPermissionProvider
File
- tests/
modules/ group_test_plugin_alter/ src/ Plugin/ Group/ RelationHandler/ BazAdminPermissionProvider.php, line 11
Namespace
Drupal\group_test_plugin_alter\Plugin\Group\RelationHandlerView source
class BazAdminPermissionProvider implements PermissionProviderInterface {
use PermissionProviderTrait;
/**
* Constructs a new BazAdminPermissionProvider.
*
* @param \Drupal\group\Plugin\Group\RelationHandler\PermissionProviderInterface $parent
* The parent permission provider.
*/
public function __construct(PermissionProviderInterface $parent) {
$this->parent = $parent;
}
/**
* {@inheritdoc}
*/
public function getAdminPermission() {
return $this->parent
->getAdminPermission() . 'baz';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BazAdminPermissionProvider:: |
public | function |
Gets the name of the admin permission. Overrides PermissionProviderTrait:: |
|
BazAdminPermissionProvider:: |
public | function | Constructs a new BazAdminPermissionProvider. | |
PermissionProviderTrait:: |
protected | property | Whether the plugin defines permissions for the target entity type. | |
PermissionProviderTrait:: |
protected | property | The entity type the plugin handler is for. | |
PermissionProviderTrait:: |
protected | property | Whether the target entity type implements the EntityOwnerInterface. | |
PermissionProviderTrait:: |
protected | property | Whether the target entity type implements the EntityPublishedInterface. | |
PermissionProviderTrait:: |
protected | function | Builds a permission with common translation arguments predefined. | |
PermissionProviderTrait:: |
public | function | 4 | |
PermissionProviderTrait:: |
public | function | 4 | |
PermissionProviderTrait:: |
public | function | ||
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 |