Evaluates the condition and returns TRUE or FALSE accordingly.
bool TRUE if the condition has been met, FALSE otherwise.
Overrides ConditionInterface::evaluate
public function evaluate() {
$language = $this
->getContextValue('language');
// Language visibility settings.
if (!empty($this->configuration['langcodes'])) {
return !empty($this->configuration['langcodes'][$language->langcode]);
}
return TRUE;
}