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

Breadcrumb

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

function BlockComponentRenderArray::__construct

Creates a BlockComponentRenderArray object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php, line 43

Class

BlockComponentRenderArray
Builds render arrays and handles access for all block components.

Namespace

Drupal\layout_builder\EventSubscriber

Code

public function __construct(AccountInterface $current_user) {
    $this->currentUser = $current_user;
}

API Navigation

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