function LayoutBuilderHighlightTrait::sectionUpdateHighlightId

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

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

Parameters

string $delta: The location of the section.

Return value

string The highlight ID of the section.

3 calls to LayoutBuilderHighlightTrait::sectionUpdateHighlightId()
ConfigureSectionForm::buildForm in core/modules/layout_builder/src/Form/ConfigureSectionForm.php
Form constructor.
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.

File

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

Class

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

Namespace

Drupal\layout_builder

Code

protected function sectionUpdateHighlightId($delta) {
    return "section-update-{$delta}";
}

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