public function GroupwiseMax::submitOptionsForm in Views (for Drupal 7) 8.3
When the form is submitted, take sure to clear the subquery string cache.
Overrides HandlerBase::submitOptionsForm
File
- lib/
Drupal/ views/ Plugin/ views/ relationship/ GroupwiseMax.php, line 173 - Definition of Drupal\views\Plugin\views\relationship\GroupwiseMax.
Class
- GroupwiseMax
- Relationship handler that allows a groupwise maximum of the linked in table. For a definition, see: http://dev.mysql.com/doc/refman/5.0/en/example-maximum-column-group-row.... In lay terms, instead of joining to get all matching records in the…
Namespace
Drupal\views\Plugin\views\relationshipCode
public function submitOptionsForm(&$form, &$form_state) {
$cid = 'views_relationship_groupwise_max:' . $this->view->storage->name . ':' . $this->view->current_display . ':' . $this->options['id'];
cache('views_results')
->delete($cid);
}