You are here

public function EntityManagerWrapper::getDefinition in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getDefinition()
  2. 8 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getDefinition()
  3. 8.2 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 214

Class

EntityManagerWrapper
Class EntityManagerWrapper.

Namespace

Drupal\webprofiler\Entity

Code

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