You are here

interface AdministrationLanguageNegotiationConditionInterface in Administration Language Negotiation 8

Interface AdministrationLanguageNegotiationConditionInterface.

Hierarchy

Expanded class hierarchy of AdministrationLanguageNegotiationConditionInterface

All classes that implement AdministrationLanguageNegotiationConditionInterface

2 files declare their use of AdministrationLanguageNegotiationConditionInterface
AdminRoutes.php in src/Plugin/AdministrationLanguageNegotiationCondition/AdminRoutes.php
Paths.php in src/Plugin/AdministrationLanguageNegotiationCondition/Paths.php

File

src/AdministrationLanguageNegotiationConditionInterface.php, line 13

Namespace

Drupal\administration_language_negotiation
View source
interface AdministrationLanguageNegotiationConditionInterface extends ConditionInterface {

  /**
   * Wrapper function that returns FALSE.
   *
   * @return bool
   *   Return FALSE
   */
  public function block();

  /**
   * Returns the description of the plugin.
   *
   * If the description is not set, returns NULL.
   *
   * @return string|null
   *   The description of the plugin.
   */
  public function getDescription();

  /**
   * Returns the name of the plugin.
   *
   * If the name is not set, returns its ID.
   *
   * @return string
   *   The name of the plugin.
   */
  public function getName();

  /**
   * Returns the weight of the plugin.
   *
   * If the weight is not set, returns 0.
   *
   * @return int
   *   The weight of the plugin.
   */
  public function getWeight();

  /**
   * Wrapper function that returns FALSE.
   *
   * @return bool
   *   Return TRUE
   */
  public function pass();

  /**
   * Post config save method.
   *
   * Method that gets triggered when the configuration of the form
   * has been saved.
   *
   * @param array $form
   *   The form array.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The FormState object.
   */
  public function postConfigSave(array &$form, FormStateInterface $form_state);

  /**
   * Set the weight of the plugin.
   *
   * @param int $weight
   *   The plugin's weight.
   *
   * @return $this
   *   Returns itself.
   */
  public function setWeight($weight);

}

Members

Namesort descending Modifiers Type Description Overrides
AdministrationLanguageNegotiationConditionInterface::block public function Wrapper function that returns FALSE. 1
AdministrationLanguageNegotiationConditionInterface::getDescription public function Returns the description of the plugin. 1
AdministrationLanguageNegotiationConditionInterface::getName public function Returns the name of the plugin. 1
AdministrationLanguageNegotiationConditionInterface::getWeight public function Returns the weight of the plugin. 1
AdministrationLanguageNegotiationConditionInterface::pass public function Wrapper function that returns FALSE. 1
AdministrationLanguageNegotiationConditionInterface::postConfigSave public function Post config save method. 1
AdministrationLanguageNegotiationConditionInterface::setWeight public function Set the weight of the plugin. 1
CacheableDependencyInterface::getCacheContexts public function The cache contexts associated with this object. 34
CacheableDependencyInterface::getCacheMaxAge public function The maximum age for which this object may be cached. 34
CacheableDependencyInterface::getCacheTags public function The cache tags associated with this object. 27
ConditionInterface::evaluate public function Evaluates the condition and returns TRUE or FALSE accordingly. 10
ConditionInterface::isNegated public function Determines whether condition result will be negated. 1
ConditionInterface::setExecutableManager public function Sets the executable manager class. 1
ConditionInterface::summary public function Provides a human readable summary of the condition's configuration. 10
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
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
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