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