Same filename in this branch
- 10 core/modules/editor/src/Element.php
- 10 core/lib/Drupal/Core/Render/Element.php
- 10 core/lib/Drupal/Core/Config/Schema/Element.php
Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Config/Schema/Element.php
- 9 core/lib/Drupal/Core/Config/Schema/Element.php
Namespace
Drupal\Core\Config\Schema
File
core/lib/Drupal/Core/Config/Schema/Element.php
View source
<?php
namespace Drupal\Core\Config\Schema;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\TypedData\TypedData;
use Drupal\Core\TypedData\TypedDataManagerInterface;
abstract class Element extends TypedData {
protected $value;
public function getTypedDataManager() {
if (empty($this->typedDataManager)) {
$this
->setTypedDataManager(\Drupal::service('config.typed'));
}
return $this->typedDataManager;
}
public function setTypedDataManager(TypedDataManagerInterface $typed_data_manager) {
assert($typed_data_manager instanceof TypedConfigManagerInterface, '$typed_data_manager should be an instance of \\Drupal\\Core\\Config\\TypedConfigManagerInterface.');
$this->typedDataManager = $typed_data_manager;
return $this;
}
}
Classes
Name |
Description |
Element |
Defines a generic configuration element. |