public function ParagraphsType::calculateDependencies

File

paragraphs/src/Entity/ParagraphsType.php, line 204

Class

ParagraphsType
Defines the ParagraphsType entity.

Namespace

Drupal\paragraphs\Entity

Code

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;
}