You are here

public function ContentHubEntityDependency::isInDependencyChain in Acquia Content Hub 8

Identifies if a dependency exists in the chain.

Parameters

\Drupal\acquia_contenthub\ContentHubEntityDependency $content_hub_entity: An entity to check against the chain.

Return value

bool TRUE if the entity is in the chain, otherwise false.

File

src/ContentHubEntityDependency.php, line 135

Class

ContentHubEntityDependency
Content Hub Dependency Class.

Namespace

Drupal\acquia_contenthub

Code

public function isInDependencyChain(ContentHubEntityDependency $content_hub_entity) {
  return in_array($content_hub_entity
    ->getUuid(), $this
    ->getDependencyChain());
}