class DerivedAccessControlHierarchy in Workbench Access 8
Defines a hierarchy based on an entity hierarchy field.
Plugin annotation
@AccessControlHierarchy(
id = "workbench_access_test_derived",
module = "workbench_access_test",
deriver = "Drupal\workbench_access_test\Plugin\Derivative\DerivedAccessControlPlugins",
label = @Translation("Derived plugins"),
description = @Translation("Uses derivatives for plugins.")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\workbench_access\AccessControlHierarchyBase implements ContainerFactoryPluginInterface, AccessControlHierarchyInterface uses PluginWithFormsTrait, StringTranslationTrait
- class \Drupal\workbench_access_test\Plugin\AccessControlHierarchy\DerivedAccessControlHierarchy
- class \Drupal\workbench_access\AccessControlHierarchyBase implements ContainerFactoryPluginInterface, AccessControlHierarchyInterface uses PluginWithFormsTrait, StringTranslationTrait
Expanded class hierarchy of DerivedAccessControlHierarchy
File
- tests/
modules/ workbench_access_test/ src/ Plugin/ AccessControlHierarchy/ DerivedAccessControlHierarchy.php, line 19
Namespace
Drupal\workbench_access_test\Plugin\AccessControlHierarchyView source
class DerivedAccessControlHierarchy extends AccessControlHierarchyBase {
/**
* {@inheritdoc}
*/
public function applies($entity_type_id, $bundle) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function getEntityValues(EntityInterface $entity) {
return [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessControlHierarchyBase:: |
protected | property | Config for module. | |
AccessControlHierarchyBase:: |
protected | property | A configuration factory object to store configuration. | |
AccessControlHierarchyBase:: |
protected | property | Entity type manager. | |
AccessControlHierarchyBase:: |
protected | property | The access tree array. | |
AccessControlHierarchyBase:: |
protected | property | User section storage. | |
AccessControlHierarchyBase:: |
public | function |
Adds a where clause to a view when using a section filter. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Alters the selection options provided for an access control field. Overrides AccessControlHierarchyInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Form constructor. Overrides PluginFormInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Calculates dependencies for the configured plugin. Overrides DependentPluginInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Responds to request for node access. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
3 |
AccessControlHierarchyBase:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurableInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Gets any options that are set but cannot be changed by the editor. Overrides AccessControlHierarchyInterface:: |
1 |
AccessControlHierarchyBase:: |
public | function | Gets the entity type id controlled by the scheme. | |
AccessControlHierarchyBase:: |
public | function |
@inheritdoc Overrides AccessControlHierarchyInterface:: |
1 |
AccessControlHierarchyBase:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurableInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Gets the entire hierarchy tree. Overrides AccessControlHierarchyInterface:: |
3 |
AccessControlHierarchyBase:: |
public | function |
Returns information on how to join this section data to a base view table. Overrides AccessControlHierarchyInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Returns the id for a hierarchy. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Returns the label for a hierarchy. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Loads a hierarchy definition for a single item in the tree. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Massage form values as appropriate during entity submit. Overrides AccessControlHierarchyInterface:: |
1 |
AccessControlHierarchyBase:: |
public | function |
Informs the plugin that a dependency of the scheme will be deleted. Overrides AccessControlHierarchyInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Resets the internal cache of the tree. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |
2 |
AccessControlHierarchyBase:: |
public static | function |
Responds to the submission of an entity form. Overrides AccessControlHierarchyInterface:: |
|
AccessControlHierarchyBase:: |
public | function |
Form validation handler. Overrides PluginFormInterface:: |
1 |
AccessControlHierarchyBase:: |
public | function |
Adds views data for the plugin. Overrides AccessControlHierarchyInterface:: |
2 |
AccessControlHierarchyBase:: |
public | function |
Constructs a new AccessControlHierarchyBase object. Overrides PluginBase:: |
1 |
DerivedAccessControlHierarchy:: |
public | function |
Check if this access scheme applies to the given entity. Overrides AccessControlHierarchyInterface:: |
|
DerivedAccessControlHierarchy:: |
public | function |
Retrieves the access control values from an entity. Overrides AccessControlHierarchyInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginWithFormsTrait:: |
public | function | ||
PluginWithFormsTrait:: |
public | function | ||
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |