You are here

public function ArgumentPluginBase::summaryName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\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.

2 calls to ArgumentPluginBase::summaryName()
MonthDate::summaryName in core/modules/views/src/Plugin/views/argument/MonthDate.php
Provides the name to use for the summary. By default this is just the name field.
StringArgument::summaryName in core/modules/views/src/Plugin/views/argument/StringArgument.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 core/modules/views/src/Plugin/views/argument/DayDate.php
Provides the name to use for the summary. By default this is just the name field.
FullDate::summaryName in core/modules/views/src/Plugin/views/argument/FullDate.php
Provides the name to use for the summary. By default this is just the name field.
LanguageArgument::summaryName in core/modules/views/src/Plugin/views/argument/LanguageArgument.php
Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryName().
MonthDate::summaryName in core/modules/views/src/Plugin/views/argument/MonthDate.php
Provides the name to use for the summary. By default this is just the name field.
NumberListField::summaryName in core/modules/options/src/Plugin/views/argument/NumberListField.php
Provides the name to use for the summary. By default this is just the name field.

... See full list

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 953

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

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 $value;
}