public function EntityNG::getPropertyValues

Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyValues().

Overrides Entity::getPropertyValues

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 299
Contains \Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getPropertyValues() {
  $values = array();
  foreach ($this
    ->getProperties() as $name => $property) {
    $values[$name] = $property
      ->getValue();
  }
  return $values;
}