class Lower in ThemeKey 8
Provides an 'equals' operator.
Plugin annotation
@Operator(
id = "<",
name = @Translation("Lower"),
description = @Translation("TODO"),
)
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\Lower
- class \Drupal\themekey\OperatorBase implements OperatorInterface
- class \Drupal\themekey\Plugin\SingletonPluginBase implements ContainerFactoryPluginInterface
Expanded class hierarchy of Lower
File
- src/
Plugin/ Operator/ Lower.php, line 21 - Contains \Drupal\themekey\Plugin\Operator\Equals.
Namespace
Drupal\themekey\Plugin\OperatorView source
class Lower extends OperatorBase {
/**
* @return bool
* TRUE if $value1 < $value2
*/
public function evaluate($value1, $value2) {
return $value1 < $value2;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Lower:: |
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:: |