public function EntityNG::getProperties

Implements ComplexDataInterface::getProperties().

Overrides Entity::getProperties

4 calls to EntityNG::getProperties()
EntityNG::getIterator in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements IteratorAggregate::getIterator().
EntityNG::getPropertyValues in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements ComplexDataInterface::getPropertyValues().
EntityNG::getTranslationLanguages in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements TranslatableInterface::getTranslationLanguages().
EntityNG::isEmpty in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements ComplexDataInterface::isEmpty().

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 126
Definition of Drupal\Core\Entity\EntityNG.

Class

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

Namespace

Drupal\Core\Entity

Code

public function getProperties($include_computed = FALSE) {
  $properties = array();
  foreach ($this
    ->getPropertyDefinitions() as $name => $definition) {
    if ($include_computed || empty($definition['computed'])) {
      $properties[$name] = $this
        ->get($name);
    }
  }
  return $properties;
}