You are here

protected function TermReference::defineOptions in EntityFieldQuery Views Backend 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides FieldInOperator::defineOptions

File

src/Plugin/views/filter/TermReference.php, line 50
Contains \Drupal\efq_views\Plugin\views\filter\FieldInOperator.

Class

TermReference
Filter by term id.

Namespace

Drupal\efq_views\Plugin\views\filter

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['type'] = array(
    'default' => 'textfield',
  );
  $options['limit'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  $options['vocabulary'] = array(
    'default' => 0,
  );
  $options['error_message'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  return $options;
}