function EntityTypeManagerInterface::hasHandler
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::hasHandler()
- 10 core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::hasHandler()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::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.
2 methods override EntityTypeManagerInterface::hasHandler()
- EntityManager::hasHandler in core/
lib/ Drupal/ Core/ Entity/ EntityManager.php - EntityTypeManager::hasHandler in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Checks whether a certain entity type has a certain handler.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeManagerInterface.php, line 96
Class
- EntityTypeManagerInterface
- Provides an interface for entity type managers.
Namespace
Drupal\Core\EntityCode
public function hasHandler($entity_type_id, $handler_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.