protected function ContentHubEntityDependency::getExcludedAttributesFromDependencies in Acquia Content Hub 8
Excludes attributes from providing dependency information.
Provides a list of attributes in which we do not want to take into consideration the dependency information contained on them.
Return value
array The array of attributes to exclude.
1 call to ContentHubEntityDependency::getExcludedAttributesFromDependencies()
- ContentHubEntityDependency::getRemoteDependencies in src/
ContentHubEntityDependency.php - Obtains remote dependencies for this particular entity.
File
- src/
ContentHubEntityDependency.php, line 311
Class
- ContentHubEntityDependency
- Content Hub Dependency Class.
Namespace
Drupal\acquia_contenthubCode
protected function getExcludedAttributesFromDependencies() {
// Set excludes for all entities.
$excludes = [
'author',
'comments',
];
// Do not exclude parent attribute for taxonomy_term.
if ($this
->getEntityType() != 'taxonomy_term') {
$excludes[] = 'parent';
}
return $excludes;
}