public function Facet::calculateDependencies in Facets 8
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
- src/
Entity/ Facet.php, line 972
Class
- Facet
- Defines the facet configuration entity.
Namespace
Drupal\facets\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
$source = $this
->getFacetSource();
if ($source === NULL) {
return $this;
}
$facet_dependencies = $source
->calculateDependencies();
if (!empty($facet_dependencies)) {
$this
->addDependencies($facet_dependencies);
}
return $this;
}