Drupal 8  8.0.2
Element Class Reference
Inheritance diagram for Element:

Public Member Functions

 getTypedDataManager ()
 
 setTypedDataManager (TypedDataManagerInterface $typed_data_manager)
 
- Public Member Functions inherited from TypedData
 __construct ($definition, $name=NULL, TypedDataInterface $parent=NULL)
 
 getPluginId ()
 
 getPluginDefinition ()
 
 getDataDefinition ()
 
 getValue ()
 
 setValue ($value, $notify=TRUE)
 
 getString ()
 
 getConstraints ()
 
 validate ()
 
 applyDefaultValue ($notify=TRUE)
 
 setContext ($name=NULL, TraversableTypedDataInterface $parent=NULL)
 
 getName ()
 
 getRoot ()
 
 getPropertyPath ()
 
 getParent ()
 

Protected Attributes

 $value
 
- Protected Attributes inherited from TypedData
 $definition
 
 $name
 
 $parent
 

Additional Inherited Members

- Static Public Member Functions inherited from TypedData
static createInstance ($definition, $name=NULL, TraversableTypedDataInterface $parent=NULL)
 

Detailed Description

Defines a generic configuration element.

Member Function Documentation

getTypedDataManager ( )

Gets the typed configuration manager.

Overrides ::getTypedDataManager() to ensure the typed configuration manager is returned.

Returns
The typed configuration manager.

References Drupal\service(), Element\setTypedDataManager(), and Drupal\typedDataManager().

Referenced by ArrayElement\buildDataDefinition(), and ArrayElement\createElement().

Here is the call graph for this function:

Here is the caller graph for this function:

setTypedDataManager ( TypedDataManagerInterface  $typed_data_manager)

Sets the typed config manager.

Overrides ::setTypedDataManager() to ensure that only typed configuration manager can be used.

Parameters
\Drupal\Core\TypedData\TypedDataManagerInterface$typed_data_managerThe typed config manager. This must be an instance of . If it is not, then this method will error when assertions are enabled. We can not narrow the typehint as this will cause PHP errors.
Returns
$this

References Drupal\typedDataManager().

Referenced by Element\getTypedDataManager().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: