You are here

public function AccessDenied::performAction in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RabbitHoleBehaviorPlugin/AccessDenied.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\AccessDenied::performAction()

Perform the rabbit hole action.

Parameters

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

Overrides RabbitHoleBehaviorPluginBase::performAction

File

src/Plugin/RabbitHoleBehaviorPlugin/AccessDenied.php, line 23

Class

AccessDenied
Denies access to a page.

Namespace

Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin

Code

public function performAction(EntityInterface $entity, Response $current_response = NULL) {
  throw new AccessDeniedHttpException();
}