You are here

public function RabbitHoleBehaviorPluginInterface::usesResponse in Rabbit Hole 8

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

1 method overrides RabbitHoleBehaviorPluginInterface::usesResponse()
RabbitHoleBehaviorPluginBase::usesResponse in src/Plugin/RabbitHoleBehaviorPluginBase.php
Get whether this plugin uses a response to perform its action.

File

src/Plugin/RabbitHoleBehaviorPluginInterface.php, line 76

Class

RabbitHoleBehaviorPluginInterface
Defines an interface for Rabbit hole behavior plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function usesResponse();