Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::entityClassImplements()
  2. 9 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\Entity

Code

public function entityClassImplements($interface);