You are here

protected function ContentHubSubscriberTestBase::isConfigEntity in Acquia Content Hub 8

Checks if an entity type id is for a Config Entity.

Parameters

string $entity_type_id: The entity type ID to check.

Return value

bool TRUE if the entity is a Config Entity, FALSE otherwise.

1 call to ContentHubSubscriberTestBase::isConfigEntity()
ContentHubSubscriberTestBase::entityValues in acquia_contenthub_subscriber/tests/src/Functional/ContentHubSubscriberTestBase.php
Provides an array of suitable property values for an entity type.

File

acquia_contenthub_subscriber/tests/src/Functional/ContentHubSubscriberTestBase.php, line 320

Class

ContentHubSubscriberTestBase
Provides the base class for web tests for Content Hub Subscribers.

Namespace

Drupal\Tests\acquia_contenthub_subscriber\Functional

Code

protected function isConfigEntity($entity_type_id) {
  return \Drupal::entityTypeManager()
    ->getDefinition($entity_type_id) instanceof ConfigEntityType;
}