function LanguageArgument::summaryName
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/argument/LanguageArgument.php \Drupal\views\Plugin\views\argument\LanguageArgument::summaryName()
- 8.9.x core/modules/views/src/Plugin/views/argument/LanguageArgument.php \Drupal\views\Plugin\views\argument\LanguageArgument::summaryName()
- 10 core/modules/views/src/Plugin/views/argument/LanguageArgument.php \Drupal\views\Plugin\views\argument\LanguageArgument::summaryName()
Provides the name to use for the summary, defaults to the name field.
Parameters
array $data: The query results for the row.
Overrides ArgumentPluginBase::summaryName
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ LanguageArgument.php, line 20
Class
- LanguageArgument
- Defines an argument handler to accept a language.
Namespace
Drupal\views\Plugin\views\argumentCode
public function summaryName($data) {
// Gets the user-friendly version of the language name.
return $this->language($data->{$this->name_alias});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.