public EntityTypeManager::hasHandler($entity_type, $handler_type)
Checks whether a certain entity type has a certain handler.
Parameters
string $entity_type: The name 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
- core/lib/Drupal/Core/Entity/EntityTypeManager.php, line 157
Class
- EntityTypeManager
- Manages entity type plugin definitions.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 6 7 | public function hasHandler( $entity_type , $handler_type ) { if ( $definition = $this ->getDefinition( $entity_type , FALSE)) { return $definition ->hasHandlerClass( $handler_type ); } return FALSE; } |
Please login to continue.