public function ParagraphsSet::calculateDependencies in Paragraphs Sets 8.2
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/ ParagraphsSet.php, line 126
Class
- ParagraphsSet
- Defines the ParagraphsSet entity.
Namespace
Drupal\paragraphs_sets\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
// Add the file icon entity as dependency if a UUID was specified.
if ($this->icon_uuid && ($file_icon = $this
->getIconFile())) {
$this
->addDependency($file_icon
->getConfigDependencyKey(), $file_icon
->getConfigDependencyName());
}
return $this;
}