interface OperatorInterface in ThemeKey 8
Defines an interface for ThemeKey operator plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\themekey\Plugin\SingletonPluginInspectionInterface
- interface \Drupal\themekey\OperatorInterface
- interface \Drupal\themekey\Plugin\SingletonPluginInspectionInterface
Expanded class hierarchy of OperatorInterface
All classes that implement OperatorInterface
File
- src/
OperatorInterface.php, line 15 - Provides Drupal\themekey\OperatorInterface
Namespace
Drupal\themekeyView source
interface OperatorInterface extends SingletonPluginInspectionInterface {
/**
* Return the name of the ThemeKey operator.
*
* @return string
*/
public function getName();
/**
* Return the Description of the ThemeKey operator.
*
* @return string
*/
public function getDescription();
/**
* Return the Description of the ThemeKey operator.
*
* @return bool
* ($value1 OPERATOR $value2)
*/
public function evaluate($value1, $value2);
/**
* Validate.
*/
public function validate(\Drupal\themekey\PropertyAdminInterface $propertyAdmin, $value, \Drupal\Core\Form\FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OperatorInterface:: |
public | function | Return the Description of the ThemeKey operator. | 2 |
OperatorInterface:: |
public | function | Return the Description of the ThemeKey operator. | 1 |
OperatorInterface:: |
public | function | Return the name of the ThemeKey operator. | 1 |
OperatorInterface:: |
public | function | Validate. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |