Commit 1d4b5fea authored by Martin Keereman's avatar Martin Keereman
Browse files

Issue #3112062 by slbrassard: Placeholder text does not save in FilterWidgetBase configuration form

parent 62cddeb3
......@@ -101,7 +101,7 @@ abstract class FilterWidgetBase extends BetterExposedFiltersWidgetBase implement
// Allow users to specify placeholder text.
$supported_types = ['entity_autocomplete', 'textfield'];
if (in_array($filter_widget_type, $supported_types)) {
$form['placeholder_text'] = [
$form['advanced']['placeholder_text'] = [
'#type' => 'textfield',
'#title' => $this->t('Placeholder text'),
'#description' => $this->t('Text to be shown in the text field until it is edited. Leave blank for no placeholder to be set.'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment