public function BlockComponentRenderArray::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php \Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray::__construct()
- 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 43
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;
}