You are here

protected function RabbitHoleBehaviorPluginBase::getFallbackAction in Rabbit Hole 8

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

Returns the fallback action in case if action cannot be performed.

Parameters

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

Return value

string Fallback action name.

1 call to RabbitHoleBehaviorPluginBase::getFallbackAction()
PageRedirect::getFallbackAction in src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php
Returns the fallback action in case if action cannot be performed.
1 method overrides RabbitHoleBehaviorPluginBase::getFallbackAction()
PageRedirect::getFallbackAction in src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php
Returns the fallback action in case if action cannot be performed.

File

src/Plugin/RabbitHoleBehaviorPluginBase.php, line 83

Class

RabbitHoleBehaviorPluginBase
Base class for Rabbit hole behavior plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

protected function getFallbackAction(EntityInterface $entity) {
  return 'access_denied';
}