You are here

protected function AllowedHtmlManager::getProviderName in Markdown 8.2

1 call to AllowedHtmlManager::getProviderName()
AllowedHtmlManager::alterDefinition in src/PluginManager/AllowedHtmlManager.php
Allows plugin managers to further alter individual definitions.

File

src/PluginManager/AllowedHtmlManager.php, line 380

Class

AllowedHtmlManager
Markdown Allowed HTML Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

protected function getProviderName($provider) {
  if ($this->moduleHandler
    ->moduleExists($provider)) {
    return $this->moduleHandler
      ->getName($provider);
  }
  if ($this->themeHandler
    ->themeExists($provider)) {
    return $this->themeHandler
      ->getName($provider);
  }
}