You are here

public function AccessDenied::performAction in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x 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();
}