class NodeRoleAccessConsumer in Role Access Control 8
Defines Entity Types controlled by module.
Plugin annotation
@RoleAccessConsumer(
id = "rac_na",
label = @Translation("Role Access Consumer Definition for rac_na"),
description = @Translation("Role Access Consumer Definition for rac_na."),
)
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\rac\RoleAccessConsumer implements RoleAccessConsumerInterface
- class \Drupal\rac_na\Plugin\rac\RoleAccessConsumer\NodeRoleAccessConsumer implements RoleAccessConsumerInterface
- class \Drupal\rac\RoleAccessConsumer implements RoleAccessConsumerInterface
Expanded class hierarchy of NodeRoleAccessConsumer
File
- contrib/
rac_na/ src/ Plugin/ rac/ RoleAccessConsumer/ NodeRoleAccessConsumer.php, line 17
Namespace
Drupal\rac_na\Plugin\rac\RoleAccessConsumerView source
class NodeRoleAccessConsumer extends RoleAccessConsumer implements RoleAccessConsumerInterface {
/**
* {@inheritdoc}
*/
public function getSupportedEntityTypes() {
return [
"node",
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodeRoleAccessConsumer:: |
public | function |
Retrieve the entity types for which access is controlled. Overrides RoleAccessConsumer:: |
|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
RoleAccessConsumer:: |
public | property | A short description of the plugin. | |
RoleAccessConsumer:: |
public | property | The plugin ID. | |
RoleAccessConsumer:: |
public | property | The human-readable name of the formatter type. |