You are here

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

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::entityProperties()
  2. 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::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 Framework::entityProperties

File

api/src/Framework/Drupal8.php, line 333

Class

Drupal8
Drupal 8-specific code.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function entityProperties($entity) {
  return [];
}