function TypedDataInternalPropertiesHelper::getNonInternalProperties
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedDataInternalPropertiesHelper.php \Drupal\Core\TypedData\TypedDataInternalPropertiesHelper::getNonInternalProperties()
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInternalPropertiesHelper.php \Drupal\Core\TypedData\TypedDataInternalPropertiesHelper::getNonInternalProperties()
- 10 core/lib/Drupal/Core/TypedData/TypedDataInternalPropertiesHelper.php \Drupal\Core\TypedData\TypedDataInternalPropertiesHelper::getNonInternalProperties()
Gets an array non-internal properties from a complex data object.
Parameters
\Drupal\Core\TypedData\ComplexDataInterface $data: The complex data object.
Return value
\Drupal\Core\TypedData\TypedDataInterface[] The non-internal properties, keyed by property name.
6 calls to TypedDataInternalPropertiesHelper::getNonInternalProperties()
- ComplexDataNormalizer::normalize in core/
modules/ serialization/ src/ Normalizer/ ComplexDataNormalizer.php - ContentEntityNormalizer::normalize in core/
modules/ serialization/ src/ Normalizer/ ContentEntityNormalizer.php - FieldItemNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ FieldItemNormalizer.php - This normalizer leaves JSON:API normalizer land and enters the land of Drupal core's serialization system. That system was never designed with cacheability in mind, and hence bubbles cacheability out of band. This must catch it, and pass it to…
- ResourceIdentifier::toResourceIdentifier in core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceIdentifier.php - Creates a ResourceIdentifier object.
- ResourceObject::extractContentEntityFields in core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceObject.php - Extracts a content entity's fields.
File
-
core/
lib/ Drupal/ Core/ TypedData/ TypedDataInternalPropertiesHelper.php, line 19
Class
- TypedDataInternalPropertiesHelper
- Helper class for internal properties.
Namespace
Drupal\Core\TypedDataCode
public static function getNonInternalProperties(ComplexDataInterface $data) {
return array_filter($data->getProperties(TRUE), function (TypedDataInterface $property) {
return !$property->getDataDefinition()
->isInternal();
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.