You are here

public function ContentHubEntityDependency::isEntityDependent in Acquia Content Hub 8

Checks whether the current entity is dependent on another one or not.

If it is entity dependent, then it needs a parent or host entity.

Return value

bool TRUE if it is Entity Dependent, FALSE otherwise.

File

src/ContentHubEntityDependency.php, line 106

Class

ContentHubEntityDependency
Content Hub Dependency Class.

Namespace

Drupal\acquia_contenthub

Code

public function isEntityDependent() {
  return in_array($this->cdf
    ->getType(), $this
    ->getPostDependencyEntityTypes());
}