You are here

public function Equals::evaluate in ThemeKey 8

Return value

bool TRUE if $value1 == $value2

Overrides OperatorInterface::evaluate

File

src/Plugin/Operator/Equals.php, line 27
Contains \Drupal\themekey\Plugin\Operator\Equals.

Class

Equals
Provides an 'equals' operator.

Namespace

Drupal\themekey\Plugin\Operator

Code

public function evaluate($value1, $value2) {
  return $value1 == $value2;
}