You are here

public function PageNotFound::performAction in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/Plugin/RabbitHoleBehaviorPlugin/PageNotFound.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\PageNotFound::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/PageNotFound.php, line 23

Class

PageNotFound
Denies access to a page.

Namespace

Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin

Code

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