You are here

interface LanguageCookieConditionInterface in Language Cookie 8

Interface LanguageCookieConditionInterface.

Hierarchy

Expanded class hierarchy of LanguageCookieConditionInterface

All classes that implement LanguageCookieConditionInterface

File

src/LanguageCookieConditionInterface.php, line 13

Namespace

Drupal\language_cookie
View source
interface LanguageCookieConditionInterface extends ConditionInterface {

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

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

  /**
   * 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 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 weight of the plugin.
   *
   * If the weight is not set, returns 0.
   *
   * @return int
   *   The weight of the plugin.
   */
  public function getWeight();

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

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

  /**
   * Set the current language.
   *
   * @param \Drupal\Core\Language\LanguageInterface $language
   *   The current language object.
   *
   * @return $this
   *   Returns itself.
   */
  public function setCurrentLanguage(LanguageInterface $language);

  /**
   * Get the current language.
   *
   * @return \Drupal\Core\Language\LanguageInterface|null
   *   The current language when available, else NULL.
   */
  public function getCurrentLanguage();

}

Members

Namesort descending Modifiers Type Description Overrides
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
LanguageCookieConditionInterface::block public function Wrapper function that returns FALSE. 1
LanguageCookieConditionInterface::getCurrentLanguage public function Get the current language. 1
LanguageCookieConditionInterface::getDescription public function Returns the description of the plugin. 1
LanguageCookieConditionInterface::getName public function Returns the name of the plugin. 1
LanguageCookieConditionInterface::getWeight public function Returns the weight of the plugin. 1
LanguageCookieConditionInterface::pass public function Wrapper function that returns FALSE. 1
LanguageCookieConditionInterface::postConfigSave public function Post config save method. 1
LanguageCookieConditionInterface::setCurrentLanguage public function Set the current language. 1
LanguageCookieConditionInterface::setWeight public function Set the weight of the plugin. 1
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