You are here

protected function ClassUtilsTrait::definitionClassImplementsInterface in Scheduled Updates 8

Determines if the class for an entity type definition implements and interface.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $type:

array $interfaces:

Return value

bool

3 calls to ClassUtilsTrait::definitionClassImplementsInterface()
ScheduledUpdateTypeBaseForm::isDefaultCompatible in src/Form/ScheduledUpdateTypeBaseForm.php
Determine if we should try to make a default value widget.
UpdateUtils::supportsOwner in src/UpdateUtils.php
Determines if the entity type being updated supports ownership.
UpdateUtils::supportsRevisionOwner in src/UpdateUtils.php
Determines if entity type being updated supports Revision Ownership.

File

src/ClassUtilsTrait.php, line 141
Contains \Drupal\scheduled_updates\ClassUtilsTrait.

Class

ClassUtilsTrait
Trait for Class related functions.

Namespace

Drupal\scheduled_updates

Code

protected function definitionClassImplementsInterface(EntityTypeInterface $type, array $interfaces) {
  return $this
    ->implementsInterface($type
    ->getClass(), $interfaces);
}