You are here

public function EntityManagerWrapper::getDefinition in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getDefinition()
  2. 8.2 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getDefinition()
  3. 4.x webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getDefinition()

Return value

\Drupal\Core\Entity\EntityTypeInterface|null

Overrides DiscoveryCachedTrait::getDefinition

File

webprofiler/src/Entity/EntityManagerWrapper.php, line 208

Class

EntityManagerWrapper
Class EntityManagerWrapper

Namespace

Drupal\webprofiler\Entity

Code

public function getDefinition($entity_type_id, $exception_on_invalid = TRUE) {
  return $this->entityManager
    ->getDefinition($entity_type_id, $exception_on_invalid);
}