public function BlockComponentRenderArray::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php \Drupal\layout_builder\EventSubscriber\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 42
Class
- BlockComponentRenderArray
- Builds render arrays and handles access for all block components.
Namespace
Drupal\layout_builder\EventSubscriberCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}