public function Sql::submitOptionsForm in Views (for Drupal 7) 8.3
Special submit handling.
Overrides QueryPluginBase::submitOptionsForm
File
- lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php, line 255 - Definition of Drupal\views\Plugin\views\query\Sql.
Class
- Sql
- @todo.
Namespace
Drupal\views\Plugin\views\queryCode
public function submitOptionsForm(&$form, &$form_state) {
$element = array(
'#parents' => array(
'query',
'options',
'query_tags',
),
);
$value = explode(',', drupal_array_get_nested_value($form_state['values'], $element['#parents']));
$value = array_filter(array_map('trim', $value));
form_set_value($element, $value, $form_state);
}