Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GroupwiseMax.php

function GroupwiseMax::getTemporaryView

Helper function to create a pseudo view.

We use this to obtain our subquery SQL.

1 call to GroupwiseMax::getTemporaryView()
GroupwiseMax::leftQuery in core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php
Generate a subquery given the user options, as set in the options.

File

core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php, line 161

Class

GroupwiseMax
The relationship handler for groupwise maximum queries.

Namespace

Drupal\views\Plugin\views\relationship

Code

protected function getTemporaryView() {
    $view = View::create([
        'base_table' => $this->definition['base'],
    ]);
    $view->addDisplay('default');
    return $view->getExecutable();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal