You are here

protected function OverridesSectionStorage::isTranslatable in Layout Builder Symmetric Translations 8

Indicates if the layout is translatable.

Return value

bool TRUE if the layout is translatable, otherwise FALSE.

1 call to OverridesSectionStorage::isTranslatable()
OverridesSectionStorage::isDefaultTranslation in src/Plugin/SectionStorage/OverridesSectionStorage.php
Indicates if the layout is default translation layout.

File

src/Plugin/SectionStorage/OverridesSectionStorage.php, line 40

Class

OverridesSectionStorage

Namespace

Drupal\layout_builder_st\Plugin\SectionStorage

Code

protected function isTranslatable() {
  $entity = $this
    ->getEntity();
  if ($entity instanceof TranslatableInterface) {
    return $entity
      ->isTranslatable();
  }
  return FALSE;
}