You are here

interface ContextReactionInterface in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextReactionInterface.php \Drupal\context\ContextReactionInterface
  2. 8.0 src/ContextReactionInterface.php \Drupal\context\ContextReactionInterface

Provides an interface for ContextReaction.

Hierarchy

Expanded class hierarchy of ContextReactionInterface

All classes that implement ContextReactionInterface

File

src/ContextReactionInterface.php, line 13

Namespace

Drupal\context
View source
interface ContextReactionInterface extends ConfigurableInterface, PluginFormInterface, PluginInspectionInterface, ExecutableInterface {

  /**
   * Get the unique ID of this context reaction.
   *
   * @return string|null
   *   The Reaction id or null if reaction was not found.
   */
  public function getId();

  /**
   * Provides a human readable summary of the condition's configuration.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   An object that, when cast to a string, returns the translated string.
   */
  public function summary();

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
ContextReactionInterface::getId public function Get the unique ID of this context reaction. 1
ContextReactionInterface::summary public function Provides a human readable summary of the condition's configuration. 7
ExecutableInterface::execute public function Executes the plugin. 20
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2