public function ArgumentPluginBase::summaryName

Provides the name to use for the summary. By default this is just the name field.

Parameters

$data: The query results for the row.

1 call to ArgumentPluginBase::summaryName()
String::summaryName in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php
Provides the name to use for the summary. By default this is just the name field.
8 methods override ArgumentPluginBase::summaryName()
DayDate::summaryName in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php
Provide a link to the next level of the view
FieldList::summaryName in drupal/core/modules/field/lib/Drupal/field/Plugin/views/argument/FieldList.php
Provides the name to use for the summary. By default this is just the name field.
FullDate::summaryName in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/FullDate.php
Provide a link to the next level of the view
LanguageArgument::summaryName in drupal/core/modules/language/lib/Drupal/language/Plugin/views/argument/LanguageArgument.php
Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryName().
MonthDate::summaryName in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php
Provide a link to the next level of the view

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 898
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

public function summaryName($data) {
  $value = $data->{$this->name_alias};
  if (empty($value) && !empty($this->definition['empty field name'])) {
    $value = $this->definition['empty field name'];
  }
  return check_plain($value);
}