Gets the typed data type of the entity.
Return value
string
Overrides Entity::getType
File
- drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 105
- Contains \Drupal\Core\Entity\EntityNG.
Class
- EntityNG
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
public function getType() {
return $this->entityType;
}