You are here

public function LanguageArgument::summaryName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/LanguageArgument.php \Drupal\views\Plugin\views\argument\LanguageArgument::summaryName()

Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryName().

Gets the user-friendly version of the language name.

Overrides ArgumentPluginBase::summaryName

File

core/modules/views/src/Plugin/views/argument/LanguageArgument.php, line 19

Class

LanguageArgument
Defines an argument handler to accept a language.

Namespace

Drupal\views\Plugin\views\argument

Code

public function summaryName($data) {
  return $this
    ->language($data->{$this->name_alias});
}