class AccessDenied in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/Plugin/RabbitHoleBehaviorPlugin/AccessDenied.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\AccessDenied
Denies access to a page.
Plugin annotation
@RabbitHoleBehaviorPlugin(
id = "access_denied",
label = @Translation("Access denied")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase implements RabbitHoleBehaviorPluginInterface
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\AccessDenied
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase implements RabbitHoleBehaviorPluginInterface
Expanded class hierarchy of AccessDenied
1 file declares its use of AccessDenied
- RabbitHoleBehaviorPluginTest.php in tests/
src/ Functional/ RabbitHoleBehaviorPluginTest.php
File
- src/
Plugin/ RabbitHoleBehaviorPlugin/ AccessDenied.php, line 18
Namespace
Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginView source
class AccessDenied extends RabbitHoleBehaviorPluginBase {
/**
* {@inheritdoc}
*/
public function performAction(EntityInterface $entity, Response $current_response = NULL) {
throw new AccessDeniedHttpException();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessDenied:: |
public | function |
Perform the rabbit hole action. Overrides RabbitHoleBehaviorPluginBase:: |
|
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. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
RabbitHoleBehaviorPluginBase:: |
public | function |
Add to or adjust the fields added by rabbit hole. Overrides RabbitHoleBehaviorPluginInterface:: |
1 |
RabbitHoleBehaviorPluginBase:: |
protected | function | Returns configuration object with "Rabbit Hole" bundle settings. | |
RabbitHoleBehaviorPluginBase:: |
protected | function | Returns the fallback action in case if action cannot be performed. | 1 |
RabbitHoleBehaviorPluginBase:: |
public | function |
Return a settings form for the rabbit hole action. Overrides RabbitHoleBehaviorPluginInterface:: |
1 |
RabbitHoleBehaviorPluginBase:: |
public | function |
Handle submission of the settings form for this plugin. Overrides RabbitHoleBehaviorPluginInterface:: |
|
RabbitHoleBehaviorPluginBase:: |
public | function |
Get whether this plugin uses a response to perform its action. Overrides RabbitHoleBehaviorPluginInterface:: |
|
RabbitHoleBehaviorPluginInterface:: |
constant | |||
RabbitHoleBehaviorPluginInterface:: |
constant | |||
RabbitHoleBehaviorPluginInterface:: |
constant |