W3cubDocs

/Drupal 8

public function Element::getTypedDataManager

public Element::getTypedDataManager()

Gets the typed configuration manager.

Overrides \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager() to ensure the typed configuration manager is returned.

Return value

\Drupal\Core\Config\TypedConfigManagerInterface The typed configuration manager.

Overrides TypedDataTrait::getTypedDataManager

File

core/lib/Drupal/Core/Config/Schema/Element.php, line 30

Class

Element
Defines a generic configuration element.

Namespace

Drupal\Core\Config\Schema

Code

public function getTypedDataManager() {
  if (empty($this->typedDataManager)) {
    $this->setTypedDataManager(\Drupal::service('config.typed'));
  }

  return $this->typedDataManager;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Schema!Element.php/function/Element::getTypedDataManager/8.1.x