ElementInterface
interface ElementInterface (View source)
Provides an interface for configuration translation form elements.
Methods
static ElementInterface
array
getTranslationBuild(LanguageInterface $source_language, LanguageInterface $translation_language, mixed $source_config, mixed $translation_config, array $parents, string|null $base_key = NULL)
Builds a render array containing the source and translation form elements.
setConfig(Config $base_config, LanguageConfigOverride $config_translation, mixed $config_values, string|null $base_key = NULL)
Sets configuration based on a nested form value array.
Details
static ElementInterface
create(TypedDataInterface $schema)
Creates a form element instance from a schema definition.
array
getTranslationBuild(LanguageInterface $source_language, LanguageInterface $translation_language, mixed $source_config, mixed $translation_config, array $parents, string|null $base_key = NULL)
Builds a render array containing the source and translation form elements.
setConfig(Config $base_config, LanguageConfigOverride $config_translation, mixed $config_values, string|null $base_key = NULL)
Sets configuration based on a nested form value array.
If the configuration values are the same as the source configuration, the override should be removed from the translation configuration.