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

Breadcrumb

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

function BlockContent::__construct

Constructs a BlockContent object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The content block storage.

File

core/modules/block_content/src/Plugin/Derivative/BlockContent.php, line 28

Class

BlockContent
Retrieves block plugin definitions for all content blocks.

Namespace

Drupal\block_content\Plugin\Derivative

Code

public function __construct(EntityStorageInterface $block_content_storage) {
    $this->blockContentStorage = $block_content_storage;
}
RSS feed
Powered by Drupal