1 views_handler_filter_in_operator.test protected ViewsHandlerFilterInOperator::getGroupedExposedFilters()

File

core/modules/views/tests/handlers/views_handler_filter_in_operator.test, line 153
Definition of ViewsHandlerFilterInOperator.

Class

ViewsHandlerFilterInOperator
Tests the core views_handler_filter_in_operator handler.

Code

protected function getGroupedExposedFilters() {
  $filters = array(
    'age' => array(
      'id' => 'age',
      'table' => 'views_test',
      'field' => 'age',
      'relationship' => 'none',
      'exposed' => TRUE,
      'expose' => array(
        'operator' => 'age_op',
        'label' => 'age',
        'identifier' => 'age',
      ),
      'is_grouped' => TRUE,
      'group_info' => array(
        'label' => 'age',
        'identifier' => 'age',
        'default_group' => 'All',
        'group_items' => array(
          1 => array(
            'title' => 'Age is one of 26, 30',
            'operator' => 'in',
            'value' => array(26, 30),
          ),
          2 => array(
            'title' => 'Age is not one of 26, 30',
            'operator' => 'not in',
            'value' => array(26, 30),
          ),
        ),
      ),
    ),
  );
  return $filters;
}