public function OverridesSectionStorage::isDefaultTranslation in Layout Builder Symmetric Translations 8
Indicates if the layout is default translation layout.
Return value
bool TRUE if the layout is the default translation layout, otherwise FALSE.
Overrides TranslatableSectionStorageInterface::isDefaultTranslation
2 calls to OverridesSectionStorage::isDefaultTranslation()
- OverridesSectionStorage::getSourceLanguage in src/Plugin/ SectionStorage/ OverridesSectionStorage.php 
- Gets the source language of the translation if any.
- OverridesSectionStorage::getTranslationLanguage in src/Plugin/ SectionStorage/ OverridesSectionStorage.php 
- Gets the language of the translation if any.
File
- src/Plugin/ SectionStorage/ OverridesSectionStorage.php, line 51 
Class
Namespace
Drupal\layout_builder_st\Plugin\SectionStorageCode
public function isDefaultTranslation() {
  if ($this
    ->isTranslatable()) {
    /** @var \Drupal\Core\Entity\TranslatableInterface $entity */
    $entity = $this
      ->getEntity();
    return $entity
      ->isDefaultTranslation();
  }
  return TRUE;
}