interface LanguageCookieConditionInterface in Language Cookie 8
Interface LanguageCookieConditionInterface.
Hierarchy
- interface \Drupal\Core\Executable\ExecutableInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Component\Plugin\ConfigurablePluginInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface
- interface \Drupal\Core\Condition\ConditionInterface
- interface \Drupal\language_cookie\LanguageCookieConditionInterface
- interface \Drupal\Core\Condition\ConditionInterface
Expanded class hierarchy of LanguageCookieConditionInterface
All classes that implement LanguageCookieConditionInterface
File
- src/
LanguageCookieConditionInterface.php, line 13
Namespace
Drupal\language_cookieView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
ConditionInterface:: |
public | function | Evaluates the condition and returns TRUE or FALSE accordingly. | 10 |
ConditionInterface:: |
public | function | Determines whether condition result will be negated. | 1 |
ConditionInterface:: |
public | function | Sets the executable manager class. | 1 |
ConditionInterface:: |
public | function | Provides a human readable summary of the condition's configuration. | 10 |
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
ExecutableInterface:: |
public | function | Executes the plugin. | 20 |
LanguageCookieConditionInterface:: |
public | function | Wrapper function that returns FALSE. | 1 |
LanguageCookieConditionInterface:: |
public | function | Get the current language. | 1 |
LanguageCookieConditionInterface:: |
public | function | Returns the description of the plugin. | 1 |
LanguageCookieConditionInterface:: |
public | function | Returns the name of the plugin. | 1 |
LanguageCookieConditionInterface:: |
public | function | Returns the weight of the plugin. | 1 |
LanguageCookieConditionInterface:: |
public | function | Wrapper function that returns FALSE. | 1 |
LanguageCookieConditionInterface:: |
public | function | Post config save method. | 1 |
LanguageCookieConditionInterface:: |
public | function | Set the current language. | 1 |
LanguageCookieConditionInterface:: |
public | function | Set the weight of the plugin. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |