You are here

protected function PluginDependencyTrait::calculatePluginDependencies in Markdown 8.2

Calculates and adds dependencies of a specific plugin instance.

Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $instance: The plugin instance.

File

src/BcSupport/PluginDependencyTrait.php, line 98

Class

PluginDependencyTrait
Provides a trait for calculating the dependencies of a plugin.

Namespace

Drupal\markdown\BcSupport

Code

protected function calculatePluginDependencies(PluginInspectionInterface $instance) {
  $this
    ->addDependencies($this
    ->getPluginDependencies($instance));
}