public function PageNotFound::performAction in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 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\RabbitHoleBehaviorPluginCode
public function performAction(EntityInterface $entity, Response $current_response = NULL) {
throw new NotFoundHttpException();
}