public function ActivityPlugin::match in Activity 8
File
- src/
Plugin/ views/ query/ ActivityPlugin.php, line 286
Class
- ActivityPlugin
- Activity views query plugin which display all activities.
Namespace
Drupal\activity\Plugin\views\queryCode
public function match($element, $condition) {
$value = $element[$condition['field']];
switch ($condition['operator']) {
case '=':
return $value == $condition['value'];
case 'IN':
return in_array($value, $condition['value']);
}
return FALSE;
}