You are here

protected function ListBase::getProviderLabel in Plugin 8.2

Gets the human-readable provider label.

Parameters

$provider string:

Return value

string

2 calls to ListBase::getProviderLabel()
ListPlugins::execute in src/Controller/ListPlugins.php
Handles the route.
ListPluginTypes::execute in src/Controller/ListPluginTypes.php
Handles the route.

File

src/Controller/ListBase.php, line 52

Class

ListBase
Handles the listing routes.

Namespace

Drupal\plugin\Controller

Code

protected function getProviderLabel($provider) {
  if ($provider == 'core') {
    return $this
      ->t('Core');
  }
  else {
    return $this->moduleHandler
      ->getName($provider);
  }
}