ElementInfoManager::__construct

public ElementInfoManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, CacheTagsInvalidatorInterface $cache_tag_invalidator, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager) Constructs a ElementInfoManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $ca

ElementInfoManager::getInfoProperty

public ElementInfoManager::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. Or the

ElementInfoManager::getInfo

public ElementInfoManager::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 element typ

ElementInfoManager::getCid

protected ElementInfoManager::getCid($theme_name) Returns the CID used to cache the element info. Parameters string $theme_name: The theme name. Return value string File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 161 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code protected function getCid($theme_name) { return 'element_info_build:' . $theme_name; }

ElementInfoManager::createInstance

public ElementInfoManager::createInstance($plugin_id, array $configuration = array()) Return value \Drupal\Core\Render\Element\ElementInterface Overrides PluginManagerBase::createInstance File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 139 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code public function createInstance($plugin_id, array $configuration = array()) { return parent::createInstance($plugin_id, $configu

ElementInfoManager::clearCachedDefinitions

public ElementInfoManager::clearCachedDefinitions() Clears static and persistent plugin definition caches. Don't resort to calling \Drupal::cache()->delete() and friends to make Drupal detect new or updated plugin definitions. Always use this method on the appropriate plugin type's plugin manager! Overrides DefaultPluginManager::clearCachedDefinitions File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 146 Class ElementInfoManager Provides a plugin manager for element plugins.

ElementInfoManager::buildInfo

protected ElementInfoManager::buildInfo($theme_name) Builds up all element information. Parameters string $theme_name: The theme name. Return value array File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 100 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code protected function buildInfo($theme_name) { // Get cached definitions. $cid = $this->getCid($theme_name); if ($cache = $this->cacheBackend->get($ci

ElementInfoManager::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 38 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code protected $themeManager;

ElementInfoManager::$elementInfo

Stores the available element information. Type: array File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 31 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code protected $elementInfo;

ElementInfoManager::$cacheTagInvalidator

The cache tag invalidator. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface File core/lib/Drupal/Core/Render/ElementInfoManager.php, line 45 Class ElementInfoManager Provides a plugin manager for element plugins. Namespace Drupal\Core\Render Code protected $cacheTagInvalidator;