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

Breadcrumb

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

function ViewsBlock::__construct

Constructs a ViewsBlock object.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\Entity\EntityStorageInterface $view_storage: The entity storage to load views.

File

core/modules/views/src/Plugin/Derivative/ViewsBlock.php, line 56

Class

ViewsBlock
Provides block plugin definitions for all Views block displays.

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityStorageInterface $view_storage) {
    $this->basePluginId = $base_plugin_id;
    $this->viewStorage = $view_storage;
}

API Navigation

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