You are here

public function TranslatableSectionStorageInterface::getSourceLanguage in Layout Builder Symmetric Translations 8

Gets the source language of the translation if any.

Return value

\Drupal\Core\Language\LanguageInterface|null The translation source language if the current layout is for a translation otherwise NULL.

1 method overrides TranslatableSectionStorageInterface::getSourceLanguage()
OverridesSectionStorage::getSourceLanguage in src/Plugin/SectionStorage/OverridesSectionStorage.php
Gets the source language of the translation if any.

File

src/TranslatableSectionStorageInterface.php, line 65

Class

TranslatableSectionStorageInterface
Defines an interface for translatable section overrides.

Namespace

Drupal\layout_builder_st

Code

public function getSourceLanguage();