You are here

protected function BaseExtensibleParser::getPluginDependencies in Markdown 8.2

Overrides InstallablePluginBase::getPluginDependencies

File

src/Plugin/Markdown/BaseExtensibleParser.php, line 144

Class

BaseExtensibleParser
Base class for extensible markdown parsers.

Namespace

Drupal\markdown\Plugin\Markdown

Code

protected function getPluginDependencies(PluginInspectionInterface $instance) {

  // Only include extensions that are enabled or required.
  if (!$instance instanceof ExtensionInterface || ($instance
    ->isEnabled() || $this
    ->isExtensionRequired($instance))) {
    return parent::getPluginDependencies($instance);
  }
  return [];
}