You are here

private function LayoutBuilder::setTranslationAcess in Layout Builder Symmetric Translations 8

Set the #access property based section storage translation.

2 calls to LayoutBuilder::setTranslationAcess()
LayoutBuilder::buildAddSectionLink in src/Element/LayoutBuilder.php
Builds a link to add a new section at a given delta.
LayoutBuilder::buildAdministrativeSection in src/Element/LayoutBuilder.php
Builds the render array for the layout section while editing.

File

src/Element/LayoutBuilder.php, line 112

Class

LayoutBuilder
Extended LayoutBuilder element to remove actions for translations.

Namespace

Drupal\layout_builder_st\Element

Code

private function setTranslationAcess(array &$build, SectionStorageInterface $section_storage) {
  $build['#access'] = !static::isTranslation($section_storage);
}