abstract protected function PreviewToggleTrait::currentUser in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/Form/PreviewToggleTrait.php \Drupal\layout_builder\Form\PreviewToggleTrait::currentUser()
Gets the current user.
Return value
\Drupal\Core\Session\AccountInterface The current user.
1 call to PreviewToggleTrait::currentUser()
- OverridesEntityForm::buildMessage in core/
modules/ layout_builder/ src/ Form/ OverridesEntityForm.php - Renders a message to display at the top of the layout builder.
File
- core/
modules/ layout_builder/ src/ Form/ PreviewToggleTrait.php, line 41
Class
- PreviewToggleTrait
- Provides a trait that provides a toggle for the content preview.
Namespace
Drupal\layout_builder\FormCode
protected abstract function currentUser();