You are here

abstract protected function PreviewToggleTrait::currentUser in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/PreviewToggleTrait.php \Drupal\layout_builder\Form\PreviewToggleTrait::currentUser()
  2. 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.

2 calls 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.
PreviewToggleTrait::buildContentPreviewToggle in core/modules/layout_builder/src/Form/PreviewToggleTrait.php
Builds the content preview toggle input.

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\Form

Code

protected abstract function currentUser();