You are here

public function LanguageCookieConditionBase::getName in Language Cookie 8

Returns the name of the plugin.

If the name is not set, returns its ID.

Return value

string The name of the plugin.

Overrides LanguageCookieConditionInterface::getName

File

src/LanguageCookieConditionBase.php, line 70

Class

LanguageCookieConditionBase
Base class for language cookie condition.

Namespace

Drupal\language_cookie

Code

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