function Search::value_form

Provide a simple textfield for equality

Overrides FilterPluginBase::value_form

File

drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php, line 69
Definition of Drupal\search\Plugin\views\filter\Search.

Class

Search
Field handler to provide simple renderer that allows linking to a node.

Namespace

Drupal\search\Plugin\views\filter

Code

function value_form(&$form, &$form_state) {
  $form['value'] = array(
    '#type' => 'textfield',
    '#size' => 15,
    '#default_value' => $this->value,
    '#attributes' => array(
      'title' => t('Enter the terms you wish to search for.'),
    ),
    '#title' => empty($form_state['exposed']) ? t('Value') : '',
  );
}