You are here

public function Framework::getEntityProperty 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::getEntityProperty()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::getEntityProperty()

Retrives the property value for an entity.

Overrides FrameworkInterface::getEntityProperty

1 method overrides Framework::getEntityProperty()
Drupal8::getEntityProperty in api/src/Framework/Drupal8.php
Retrives the property value for an entity.

File

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

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function getEntityProperty(&$entity, $property) {
  return $this
    ->implementor()
    ->getEntityProperty($entity, $property);
}