You are here

public function LanguageCookieConditionBase::getDescription in Language Cookie 8

Returns the description of the plugin.

If the description is not set, returns NULL.

Return value

string|null The description of the plugin.

Overrides LanguageCookieConditionInterface::getDescription

File

src/LanguageCookieConditionBase.php, line 78

Class

LanguageCookieConditionBase
Base class for language cookie condition.

Namespace

Drupal\language_cookie

Code

public function getDescription() {
  $definition = $this
    ->getPluginDefinition();
  return !empty($definition['description']) ? $definition['description'] : NULL;
}