TypedDataManager::createDataDefinition

public TypedDataManager::createDataDefinition($data_type) Creates a new data definition object. While data definitions objects may be created directly if the definition class used by a data type is known, this method allows the creation of data definitions for any given data type. For example, if a definition for a map is to be created, the following code could be used instead of calling this method with the argument 'map': $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create();

TypedDataManager::create

public TypedDataManager::create(DataDefinitionInterface $definition, $value = NULL, $name = NULL, $parent = NULL) Creates a new typed data object instance. Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition of the typed data object. For backwards-compatibility an array representation of the data definition may be passed also. mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data

TypedDataManager::createInstance

public TypedDataManager::createInstance($data_type, array $configuration = array()) Creates a pre-configured instance of a plugin. Parameters string $plugin_id: The ID of the plugin being instantiated. array $configuration: An array of configuration relevant to the plugin instance. Return value object A fully configured plugin instance. Throws \Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid. Overrides PluginManagerBase::creat

TypedDataManager::createListDataDefinition

public TypedDataManager::createListDataDefinition($item_type) Creates a new list data definition for items of the given data type. Parameters string $item_type: The item type, for which a list data definition should be created. Return value \Drupal\Core\TypedData\ListDataDefinitionInterface A list definition for items of the given data type. Overrides TypedDataManagerInterface::createListDataDefinition See also \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() File core/lib/Dru

TypedDataManager::$constraintManager

The validation constraint manager to use for instantiating constraints. Type: \Drupal\Core\Validation\ConstraintManager File core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 36 Class TypedDataManager Manages data type plugins. Namespace Drupal\Core\TypedData Code protected $constraintManager;

TypedDataManager::$validator

The validator used for validating typed data. Type: \Symfony\Component\Validator\Validator\ValidatorInterface File core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 29 Class TypedDataManager Manages data type plugins. Namespace Drupal\Core\TypedData Code protected $validator;

TypedDataManager::clearCachedDefinitions

public TypedDataManager::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/TypedData/TypedDataManager.php, line 267 Class TypedDataManager Manages data type plugins. Namespace Drupal\Co

TypedDataManager::$prototypes

An array of typed data property prototypes. Type: array File core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 43 Class TypedDataManager Manages data type plugins. Namespace Drupal\Core\TypedData Code protected $prototypes = array();

TypedDataManager

Manages data type plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\TypedData\TypedDataManager implements TypedDataManagerInterface uses DependencySerializationTrait File core/lib/Drupal/Core/TypedData/TypedDataManager.p

TypedDataManager::$classResolver

The class resolver. Type: \Drupal\Core\DependencyInjection\ClassResolverInterface File core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 50 Class TypedDataManager Manages data type plugins. Namespace Drupal\Core\TypedData Code protected $classResolver;