ElementInterface::setConfig

public ElementInterface::setConfig(Config $base_config, LanguageConfigOverride $config_translation, $config_values, $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. Parameters \Drupal\Core\Config\Config $base_config: Base configuration values, in the source language. \Drupal\language\Config\LanguageConfigOverride $config_translation: T

ElementInterface::setAttributes

public static ElementInterface::setAttributes(&$element, $class = array()) Sets a form element's class attribute. Adds 'required' and 'error' classes as needed. Parameters array $element: The form element. array $class: Array of new class names to be added. File core/lib/Drupal/Core/Render/Element/ElementInterface.php, line 50 Class ElementInterface Provides an interface for render element plugins. Namespace Drupal\Core\Render\Element Code public static function setAttributes(&

ElementInterface::getTranslationBuild

public ElementInterface::getTranslationBuild(LanguageInterface $source_language, LanguageInterface $translation_language, $source_config, $translation_config, array $parents, $base_key = NULL) Builds a render array containg the source and translation form elements. Parameters \Drupal\Core\Language\LanguageInterface $source_language: The source language of the configuration object. \Drupal\Core\Language\LanguageInterface $translation_language: The language to display the translation form for. m

ElementInterface::getInfo

public ElementInterface::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/ElementInterface.php, line 38 Class ElementInterface Provides an interface for render element plugins. Namespace Drupal\Core

ElementInterface::create

public static ElementInterface::create(TypedDataInterface $schema) Creates a form element instance from a schema definition. Parameters \Drupal\Core\TypedData\TypedDataInterface $schema: The configuration schema. Return value static File core/modules/config_translation/src/FormElement/ElementInterface.php, line 23 Class ElementInterface Provides an interface for configuration translation form elements. Namespace Drupal\config_translation\FormElement Code public static function create

ElementInterface

Provides an interface for configuration translation form elements. Hierarchy interface \Drupal\config_translation\FormElement\ElementInterface File core/modules/config_translation/src/FormElement/ElementInterface.php, line 13 Namespace Drupal\config_translation\FormElement Members Name Modifiers Type Description ElementInterface::create public static function Creates a form element instance from a schema definition. ElementInterface::getTranslationBuild public func

ElementInterface

Provides an interface for render element plugins. Render element plugins allow modules to declare their own Render API element types and specify the default values for the properties. The values returned by the getInfo() method of the element plugin will be merged with the properties specified in render arrays. Thus, you can specify defaults for any Render API keys, in addition to those explicitly documented by \Drupal\Core\Render\ElementInfoManagerInterface::getInfo(). Some render elements are

ElementInfoManagerInterface::getInfoProperty

public ElementInfoManagerInterface::getInfoProperty($type, $property_name, $default = NULL) Retrieves a single property for the defined element type. Parameters string $type: An element type as defined by an element plugin. string $property_name: The property within the element type that should be returned. $default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL. Return value string The property value of the defined element type

ElementInfoManagerInterface::getInfo

public ElementInfoManagerInterface::getInfo($type) Retrieves the default properties for the defined element type. Each of the form element types defined by this hook is assumed to have a matching theme hook, which should be registered with hook_theme() as normal. For more information about custom element types see the explanation at https://www.drupal.org/node/169815. Parameters string $type: The machine name of an element type plugin. Return value array An associative array describing the el

ElementInfoManagerInterface

Collects available render array element types. Hierarchy interface \Drupal\Core\Render\ElementInfoManagerInterface File core/lib/Drupal/Core/Render/ElementInfoManagerInterface.php, line 8 Namespace Drupal\Core\Render Members Name Modifiers Type Description ElementInfoManagerInterface::getInfo public function Retrieves the default properties for the defined element type. ElementInfoManagerInterface::getInfoProperty public function Retrieves a single property for t