You are here

public function EntityManagerWrapper::hasHandler in Devel 8

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

Checks whether a certain entity type has a certain handler.

Parameters

string $entity_type_id: The ID of the entity type.

string $handler_type: The name of the handler.

Return value

bool Returns TRUE if the entity type has the handler, else FALSE.

Overrides EntityTypeManagerInterface::hasHandler

File

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

Class

EntityManagerWrapper
Class EntityManagerWrapper

Namespace

Drupal\webprofiler\Entity

Code

public function hasHandler($entity_type, $handler_type) {
  return $this->entityManager
    ->hasHandler($entity_type, $handler_type);
}