You are here

public function Framework::entityProperties in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::entityProperties()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::entityProperties()

Retrieve properties of an entity.

In Drupal 8, (almost?) everything is a field. This function is here for historical reasons (in Drupal 7 there were properties _and_ fields).

Parameters

object $entity: A Drupal entity object.

Return value

array Array of properties.

Overrides FrameworkInterface::entityProperties

1 method overrides Framework::entityProperties()
Drupal8::entityProperties in api/src/Framework/Drupal8.php
Retrieve properties of an entity.

File

api/src/Framework/Framework.php, line 117

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function entityProperties($entity) {
  return $this
    ->implementor()
    ->entityProperties($entity);
}