You are here

public function LanguageSelectionPageConditionBase::getName in Language Selection Page 8.2

Returns the name of the plugin.

If the name is not set, returns its ID.

Return value

string The name of the plugin.

Overrides LanguageSelectionPageConditionInterface::getName

File

src/LanguageSelectionPageConditionBase.php, line 69

Class

LanguageSelectionPageConditionBase
Base class for language selection page condition.

Namespace

Drupal\language_selection_page

Code

public function getName() {
  $definition = $this
    ->getPluginDefinition();
  return !empty($definition['name']) ? $definition['name'] : $this
    ->getPluginId();
}