public function Translator::calculateDependencies

File

src/Entity/Translator.php, line 506

Class

Translator
Entity class for the tmgmt_translator entity.

Namespace

Drupal\tmgmt\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  if ($this
    ->getPlugin()) {
    $this
      ->addDependency('module', $this
      ->getPlugin()
      ->getPluginDefinition()['provider']);
  }
  return $this;
}