function LayoutBuilderHighlightTrait::blockUpdateHighlightId

Same name in other branches
  1. 9 core/modules/layout_builder/src/LayoutBuilderHighlightTrait.php \Drupal\layout_builder\LayoutBuilderHighlightTrait::blockUpdateHighlightId()
  2. 8.9.x core/modules/layout_builder/src/LayoutBuilderHighlightTrait.php \Drupal\layout_builder\LayoutBuilderHighlightTrait::blockUpdateHighlightId()
  3. 11.x core/modules/layout_builder/src/LayoutBuilderHighlightTrait.php \Drupal\layout_builder\LayoutBuilderHighlightTrait::blockUpdateHighlightId()

Provides the ID used to highlight the active Layout Builder UI element.

Parameters

string $uuid: The uuid of the block.

Return value

string The highlight ID of the block.

4 calls to LayoutBuilderHighlightTrait::blockUpdateHighlightId()
LayoutBuilder::buildAdministrativeSection in core/modules/layout_builder/src/Element/LayoutBuilder.php
Builds the render array for the layout section while editing.
LayoutRebuildConfirmFormBase::buildForm in core/modules/layout_builder/src/Form/LayoutRebuildConfirmFormBase.php
Form constructor.
MoveBlockForm::buildForm in core/modules/layout_builder/src/Form/MoveBlockForm.php
Builds the move block form.
UpdateBlockForm::buildForm in core/modules/layout_builder/src/Form/UpdateBlockForm.php
Builds the block form.

File

core/modules/layout_builder/src/LayoutBuilderHighlightTrait.php, line 34

Class

LayoutBuilderHighlightTrait
A trait for generating IDs used to highlight active UI elements.

Namespace

Drupal\layout_builder

Code

protected function blockUpdateHighlightId($uuid) {
    return $uuid;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.