public function AdministrationLanguageNegotiationConditionBase::getName in Administration Language Negotiation 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 AdministrationLanguageNegotiationConditionInterface::getName
File
- src/
AdministrationLanguageNegotiationConditionBase.php, line 50
Class
- AdministrationLanguageNegotiationConditionBase
- Base class for administration language administration condition.
Namespace
Drupal\administration_language_negotiationCode
public function getName() {
$definition = $this
->getPluginDefinition();
return !empty($definition['name']) ? $definition['name'] : $this
->getPluginId();
}