Gets a backward compatibility decorator entity.
Return value
\Drupal\Core\Entity\EntityInterface
The backward compatible entity.
See also
\Drupal\Core\Entity\EntityInterface::getNGEntity()
File
- drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 218
- Contains \Drupal\Core\Entity\EntityInterface.
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\Entity
Code
public function getBCEntity();