function Search::value_form in Views (for Drupal 7) 8.3
Provide a simple textfield for equality
Overrides FilterPluginBase::value_form
File
- lib/
Views/ search/ Plugin/ views/ filter/ Search.php, line 69 - Definition of Views\search\Plugin\views\filter\Search.
Class
- Search
- Field handler to provide simple renderer that allows linking to a node.
Namespace
Views\search\Plugin\views\filterCode
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') : '',
);
}