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

Breadcrumb

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

function ViewsBlockBase::getViewExecutable

Gets the view executable.

@todo revisit after https://www.drupal.org/node/3027653. This method was added in https://www.drupal.org/node/3002608, but should not be necessary once block plugins can determine if they are being previewed.

Return value

\Drupal\views\ViewExecutable The view executable.

File

core/modules/views/src/Plugin/Block/ViewsBlockBase.php, line 232

Class

ViewsBlockBase
Base class for Views block plugins.

Namespace

Drupal\views\Plugin\Block

Code

public function getViewExecutable() {
    return $this->view;
}

API Navigation

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