You are here

public function RabbitHoleBehaviorPluginBase::usesResponse in Rabbit Hole 2.x

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

Get whether this plugin uses a response to perform its action.

Override this to return one of USES_RESPONSE_NEVER, USES_RESPONSE_SOMETIMES, or USES_RESPONSE_ALWAYS to indicate whether performAction() should be invoked only when a null response is given, regardless of whether there is a response (it'll figure out what to do with or without on its own), or only when a non-null response is given. Defaults to returning USES_RESPONSE_NEVER.

Overrides RabbitHoleBehaviorPluginInterface::usesResponse

File

src/Plugin/RabbitHoleBehaviorPluginBase.php, line 53

Class

RabbitHoleBehaviorPluginBase
Base class for Rabbit hole behavior plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function usesResponse() {
  return RabbitHoleBehaviorPluginInterface::USES_RESPONSE_NEVER;
}