protected function Fulltext::valueForm in Name Field 8
Provide a simple textfield for equality.
Overrides FilterPluginBase::valueForm
File
- src/
Plugin/ views/ filter/ Fulltext.php, line 97
Class
- Fulltext
- Filter by fulltext search.
Namespace
Drupal\name\Plugin\views\filterCode
protected function valueForm(&$form, FormStateInterface $form_state) {
$form['value'] = [
'#type' => 'textfield',
'#size' => 15,
'#default_value' => $this->value,
'#attributes' => [
'title' => $this
->t('Enter the name you wish to search for.'),
],
'#title' => $this
->isExposed() ? '' : $this
->t('Value'),
];
}