function EntityTypeInterface::entityClassImplements
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::entityClassImplements()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::entityClassImplements()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::entityClassImplements()
Indicates if the entity type class implements the given interface.
Parameters
string $interface: The class or interface to check.
Return value
bool TRUE if the entity type class implements the given interface.
1 method overrides EntityTypeInterface::entityClassImplements()
- EntityType::entityClassImplements in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Indicates if the entity type class implements the given interface.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 361
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function entityClassImplements($interface);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.