class Equals in ThemeKey 8
Provides an 'equals' operator.
Plugin annotation
@Operator(
id = "=",
name = @Translation("Equals"),
description = @Translation("Equals (exact value of a property, consider ThemeKey Debug to get an impression of the possible values)"),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\themekey\Plugin\SingletonPluginBase implements ContainerFactoryPluginInterface
- class \Drupal\themekey\OperatorBase implements OperatorInterface
- class \Drupal\themekey\Plugin\Operator\Equals
- class \Drupal\themekey\OperatorBase implements OperatorInterface
- class \Drupal\themekey\Plugin\SingletonPluginBase implements ContainerFactoryPluginInterface
Expanded class hierarchy of Equals
File
- src/
Plugin/ Operator/ Equals.php, line 21 - Contains \Drupal\themekey\Plugin\Operator\Equals.
Namespace
Drupal\themekey\Plugin\OperatorView source
class Equals extends OperatorBase {
/**
* @return bool
* TRUE if $value1 == $value2
*/
public function evaluate($value1, $value2) {
return $value1 == $value2;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Equals:: |
public | function |
Overrides OperatorInterface:: |
|
OperatorBase:: |
public | function |
Return the Description of the ThemeKey operator. Overrides OperatorInterface:: |
|
OperatorBase:: |
public | function |
Return the name of the ThemeKey operator. Overrides OperatorInterface:: |
|
OperatorBase:: |
public | function |
Validate. Overrides OperatorInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
SingletonPluginBase:: |
protected static | property | ||
SingletonPluginBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |