interface YamlFormTranslationManagerInterface in YAML Form 8
Defines an interface for form element translation classes.
Hierarchy
- interface \Drupal\yamlform\YamlFormTranslationManagerInterface
Expanded class hierarchy of YamlFormTranslationManagerInterface
All classes that implement YamlFormTranslationManagerInterface
File
- src/
YamlFormTranslationManagerInterface.php, line 8
Namespace
Drupal\yamlformView source
interface YamlFormTranslationManagerInterface {
/**
* Get form elements for specific language.
*
* @param \Drupal\yamlform\YamlFormInterface $yamlform
* A form.
* @param string $langcode
* The language code for the form elements.
* @param bool $reset
* (optional) Whether to reset the translated config cache. Defaults to
* FALSE.
*
* @return array
* A form's translated elements.
*/
public function getConfigElements(YamlFormInterface $yamlform, $langcode, $reset = FALSE);
/**
* Get base form elements from the site's default language.
*
* @param \Drupal\yamlform\YamlFormInterface $yamlform
* A form.
*
* @return array
* Base form elements as a flattened associative array.
*/
public function getBaseElements(YamlFormInterface $yamlform);
/**
* Get flattened associative array of translated element properties.
*
* @param \Drupal\yamlform\YamlFormInterface $yamlform
* A form.
*
* @return array
* A associative array of translated element properties.
*/
public function getSourceElements(YamlFormInterface $yamlform);
/**
* Get flattened associative array of translated element properties.
*
* @param \Drupal\yamlform\YamlFormInterface $yamlform
* A form.
*
* @return array
* A associative array of translated element properties.
*/
public function getTranslationElements(YamlFormInterface $yamlform, $langcode);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
YamlFormTranslationManagerInterface:: |
public | function | Get base form elements from the site's default language. | 1 |
YamlFormTranslationManagerInterface:: |
public | function | Get form elements for specific language. | 1 |
YamlFormTranslationManagerInterface:: |
public | function | Get flattened associative array of translated element properties. | 1 |
YamlFormTranslationManagerInterface:: |
public | function | Get flattened associative array of translated element properties. | 1 |