You are here

public function RabbitHoleBehaviorPluginBase::performAction in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/Plugin/RabbitHoleBehaviorPluginBase.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase::performAction()

Perform the rabbit hole action.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the action is being performed on.

Overrides RabbitHoleBehaviorPluginInterface::performAction

3 methods override RabbitHoleBehaviorPluginBase::performAction()
AccessDenied::performAction in src/Plugin/RabbitHoleBehaviorPlugin/AccessDenied.php
Perform the rabbit hole action.
PageNotFound::performAction in src/Plugin/RabbitHoleBehaviorPlugin/PageNotFound.php
Perform the rabbit hole action.
PageRedirect::performAction in src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php
Perform the rabbit hole action.

File

src/Plugin/RabbitHoleBehaviorPluginBase.php, line 18

Class

RabbitHoleBehaviorPluginBase
Base class for Rabbit hole behavior plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function performAction(EntityInterface $entity) {

  // Perform no action.
}