public function Entity::getDefinition

Implements \Drupal\Core\TypedData\TypedDataInterface::getDefinition().

Overrides TypedDataInterface::getDefinition

File

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

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getDefinition() {
  return array(
    'type' => $this
      ->getType(),
  );
}