You are here

protected function LayoutBuilder::buildAddSectionLink in Layout Builder Symmetric Translations 8

Builds a link to add a new section at a given delta.

Parameters

\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.

int $delta: The delta of the section to splice.

Return value

array A render array for a link.

Overrides LayoutBuilder::buildAddSectionLink

File

src/Element/LayoutBuilder.php, line 70

Class

LayoutBuilder
Extended LayoutBuilder element to remove actions for translations.

Namespace

Drupal\layout_builder_st\Element

Code

protected function buildAddSectionLink(SectionStorageInterface $section_storage, $delta) {
  $link = parent::buildAddSectionLink($section_storage, $delta);
  $this
    ->setTranslationAcess($link, $section_storage);
  return $link;
}