Implements ComplexDataInterface::getProperties().
Overrides ComplexDataInterface::getProperties
File
- drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php, line 189
- Definition of Drupal\Core\Entity\Field\Type\EntityWrapper.
Class
- EntityWrapper
- Defines an 'entity' data type, e.g. the computed 'entity' property of entity references.
Namespace
Drupal\Core\Entity\Field\Type
Code
public function getProperties($include_computed = FALSE) {
$entity = $this
->getValue();
return $entity ? $entity
->getProperties($include_computed) : array();
}