interface TranslatableSectionStorageInterface in Layout Builder Symmetric Translations 8
Defines an interface for translatable section overrides.
Hierarchy
- interface \Drupal\layout_builder\SectionListInterface extends \Drupal\layout_builder\Countable; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContextAwarePluginInterface; interface \Drupal\Core\Access\AccessibleInterface
- interface \Drupal\layout_builder\SectionStorageInterface
- interface \Drupal\layout_builder_st\TranslatableSectionStorageInterface
- interface \Drupal\layout_builder\SectionStorageInterface
Expanded class hierarchy of TranslatableSectionStorageInterface
All classes that implement TranslatableSectionStorageInterface
3 files declare their use of TranslatableSectionStorageInterface
- LayoutBuilderWidget.php in src/
Plugin/ Field/ FieldWidget/ LayoutBuilderWidget.php - OverridesSectionStorage.php in src/
Plugin/ SectionStorage/ OverridesSectionStorage.php - TranslateBlockForm.php in src/
Form/ TranslateBlockForm.php
File
- src/
TranslatableSectionStorageInterface.php, line 10
Namespace
Drupal\layout_builder_stView source
interface TranslatableSectionStorageInterface extends SectionStorageInterface {
/**
* Indicates if the layout is default translation layout.
*
* @return bool
* TRUE if the layout is the default translation layout, otherwise FALSE.
*/
public function isDefaultTranslation();
/**
* Sets the translated component configuration.
*
* @param string $uuid
* The component UUID.
* @param array $configuration
* The component's translated configuration.
*/
public function setTranslatedComponentConfiguration($uuid, array $configuration);
/**
* Gets the translated component configuration.
*
* @param string $uuid
* The component UUID.
*
* @return array
* The component's translated configuration.
*/
public function getTranslatedComponentConfiguration($uuid);
/**
* Gets the translated configuration for the layout.
*
* @return array
* The translated configuration for the layout.
*/
public function getTranslatedConfiguration();
/**
* Gets the language of the translation if any.
*
* @return \Drupal\Core\Language\LanguageInterface|null
* The translation language if the current layout is for a translation
* otherwise NULL.
*/
public function getTranslationLanguage();
/**
* Gets the source language of the translation if any.
*
* @return \Drupal\Core\Language\LanguageInterface|null
* The translation source language if the current layout is for a
* translation otherwise NULL.
*/
public function getSourceLanguage();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextAwarePluginInterface:: |
public | function | Gets a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function |
Gets a specific context definition of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function |
Gets the context definitions of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function | Gets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the values for all defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Set a context on this plugin. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Validates the set values for the defined contexts. | 1 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SectionListInterface:: |
public | function | Appends a new section to the end of the list. | 1 |
SectionListInterface:: |
public | function | Gets a domain object for the layout section. | 1 |
SectionListInterface:: |
public | function | Gets the layout sections. | 5 |
SectionListInterface:: |
public | function | Inserts a new section at a given delta. | 1 |
SectionListInterface:: |
public | function | Removes all of the sections. | 1 |
SectionListInterface:: |
public | function | Removes the section at the given delta. | 1 |
SectionStorageInterface:: |
public | function |
Overrides \Drupal\Core\Access\AccessibleInterface::access(). Overrides AccessibleInterface:: |
4 |
SectionStorageInterface:: |
public | function | Provides the routes needed for Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function | Derives the available plugin contexts from route values. | 4 |
SectionStorageInterface:: |
public | function | Configures the plugin based on route values. | 4 |
SectionStorageInterface:: |
public | function | Gets contexts for use during preview. | 2 |
SectionStorageInterface:: |
public | function | Gets the URL used to display the Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function |
Overrides \Drupal\Component\Plugin\PluginInspectionInterface::getPluginDefinition(). Overrides PluginInspectionInterface:: |
|
SectionStorageInterface:: |
public | function | Gets the URL used when redirecting away from the Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function | Derives the section list from the storage ID. | 4 |
SectionStorageInterface:: |
public | function | Returns an identifier for this storage. | 4 |
SectionStorageInterface:: |
public | function | Returns the type of this storage. | 2 |
SectionStorageInterface:: |
public | function | Determines if this section storage is applicable for the current contexts. | 4 |
SectionStorageInterface:: |
public | function | Gets the label for the object using the sections. | 4 |
SectionStorageInterface:: |
public | function | Saves the sections. | 4 |
TranslatableSectionStorageInterface:: |
public | function | Gets the source language of the translation if any. | 1 |
TranslatableSectionStorageInterface:: |
public | function | Gets the translated component configuration. | 1 |
TranslatableSectionStorageInterface:: |
public | function | Gets the translated configuration for the layout. | 1 |
TranslatableSectionStorageInterface:: |
public | function | Gets the language of the translation if any. | 1 |
TranslatableSectionStorageInterface:: |
public | function | Indicates if the layout is default translation layout. | 1 |
TranslatableSectionStorageInterface:: |
public | function | Sets the translated component configuration. | 1 |