class PageNotFound in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 src/Plugin/RabbitHoleBehaviorPlugin/PageNotFound.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\PageNotFound
Denies access to a page.
Plugin annotation
@RabbitHoleBehaviorPlugin(
id = "page_not_found",
label = @Translation("Page not found")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase implements RabbitHoleBehaviorPluginInterface
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\PageNotFound
- class \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase implements RabbitHoleBehaviorPluginInterface
Expanded class hierarchy of PageNotFound
1 file declares its use of PageNotFound
- RabbitHoleBehaviorPluginTest.php in tests/
src/ Functional/ RabbitHoleBehaviorPluginTest.php
File
- src/
Plugin/ RabbitHoleBehaviorPlugin/ PageNotFound.php, line 18
Namespace
Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginView source
class PageNotFound extends RabbitHoleBehaviorPluginBase {
/**
* {@inheritdoc}
*/
public function performAction(EntityInterface $entity, Response $current_response = NULL) {
throw new NotFoundHttpException();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PageNotFound:: |
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:: |
2 |
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. | 98 |
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 |