You are here

public function EmbedButton::calculateDependencies in Embed 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/EmbedButton.php, line 145

Class

EmbedButton
Defines the EmbedButton entity.

Namespace

Drupal\embed\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();

  // Gather the dependencies of the embed type plugin.
  if ($plugin = $this
    ->getTypePlugin()) {
    $this
      ->calculatePluginDependencies($plugin);
    return $this->dependencies;
  }
  return NULL;
}