You are here

interface OperatorInterface in ThemeKey 8

Defines an interface for ThemeKey operator plugins.

Hierarchy

Expanded class hierarchy of OperatorInterface

All classes that implement OperatorInterface

File

src/OperatorInterface.php, line 15
Provides Drupal\themekey\OperatorInterface

Namespace

Drupal\themekey
View 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

Namesort descending Modifiers Type Description Overrides
OperatorInterface::evaluate public function Return the Description of the ThemeKey operator. 2
OperatorInterface::getDescription public function Return the Description of the ThemeKey operator. 1
OperatorInterface::getName public function Return the name of the ThemeKey operator. 1
OperatorInterface::validate public function Validate. 1
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