function BlockComponentRenderArray::__construct
Same name in other branches
- 9 core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php \Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray::__construct()
- 8.9.x core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php \Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray::__construct()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.