public function submitOptionsForm(&
$form, FormStateInterface
$form_state) { $element =
['#parents' =>
['query', 'options', 'query_tags'
]];
$value = NestedArray::
getValue($form_state->
getValues(),
$element['#parents'
]);
// When toggling a display to override defaults or vice-versa the submit
// handler gets invoked twice, and we don't want to bash the values from the
// original call.
if (is_array($value)) { return;
} $value =
array_filter(array_map('trim',
explode(',',
$value)));
$form_state->
setValueForElement($element,
$value);
} /**
* Adds a relationship to the query.
*
* A relationship is an alternative endpoint to a series of table
* joins. Relationships must be aliases of the primary table and
* they must join either to the primary table or to a pre-existing
* relationship.
*
* An example of a relationship would be a node reference table.
* If you have a node reference named 'book_parent' which links to a
* parent node, you could set up a relationship 'node_book_parent'
* to 'node'. Then, anything that links to 'node' can link to
* 'node_book_parent' instead, thus allowing all properties of
* both nodes to be available in the query.
*
* @param $alias
* What this relationship will be called, and is also the alias
* for the table.
* @param \Drupal\views\Plugin\views\join\JoinPluginBase $join
* A Join object (or derived object) to join the alias in.
* @param $base
* The name of the 'base' table this relationship represents; this
* tells the join search which path to attempt to use when finding
* the path to this relationship.
* @param $link_point
* If this relationship links to something other than the primary
* table, specify that table here. For example, a 'track' node
* might have a relationship to an 'album' node, which might
* have a relationship to an 'artist' node.
*/