12 calls to DataDefinition::create()
- ContextTypedDataTest::testGetContextValue in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ ContextTypedDataTest.php - Tests that getting a context value does not throw fatal errors.
- ContextTypedDataTest::testSerialize in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ ContextTypedDataTest.php - Tests that contexts can be serialized.
- DataDefinition::createFromDataType in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - Creates a new data definition object.
- DataReferenceDefinition::create in core/
lib/ Drupal/ Core/ TypedData/ DataReferenceDefinition.php - Creates a new data reference definition.
- FilterAPITest::testTypedDataAPI in core/
modules/ filter/ tests/ src/ Kernel/ FilterAPITest.php - Tests the function of the typed data type.
- ListDataDefinition::createFromDataType in core/
lib/ Drupal/ Core/ TypedData/ ListDataDefinition.php - Creates a new data definition object.
- MapDataNormalizerTest::buildExampleTypedDataWithProperties in core/
modules/ serialization/ tests/ src/ Kernel/ MapDataNormalizerTest.php - Builds some example typed data object with properties.
- PrimitiveTypeConstraintValidatorTest::provideTestValidate in core/
tests/ Drupal/ Tests/ Core/ Validation/ Plugin/ Validation/ Constraint/ PrimitiveTypeConstraintValidatorTest.php - RecursiveContextualValidatorTest::testBasicValidateWithoutConstraints in core/
tests/ Drupal/ Tests/ Core/ TypedData/ RecursiveContextualValidatorTest.php - @covers ::validate
- TypedDataDefinitionTest::testMaps in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataDefinitionTest.php - Tests deriving metadata about maps.
- TypedDataTest::createTypedData in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php - Creates a typed data object and ensures it implements TypedDataInterface.
- TypedDataTest::testTypedDataMaps in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php - Tests using a typed data map.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.