Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArgumentPluginBase.php

function ArgumentPluginBase::summaryName

Provides the name to use for the summary, defaults to the name field.

Parameters

$data: The query results for the row.

4 calls to ArgumentPluginBase::summaryName()
MonthDate::summaryName in core/modules/views/src/Plugin/views/argument/MonthDate.php
Provides the name to use for the summary, defaults to the name field.
MonthDate::summaryName in core/modules/views/src/Plugin/views/argument/MonthDate.php
Provides the name to use for the summary, defaults to the name field.
StringArgument::summaryName in core/modules/views/src/Plugin/views/argument/StringArgument.php
Provides the name to use for the summary, defaults to the name field.
StringArgument::summaryName in core/modules/views/src/Plugin/views/argument/StringArgument.php
Provides the name to use for the summary, defaults to the name field.
9 methods override ArgumentPluginBase::summaryName()
DayDate::summaryName in core/modules/views/src/Plugin/views/argument/DayDate.php
Provides the name to use for the summary, defaults to the name field.
EntityReferenceArgument::summaryName in core/modules/views/src/Plugin/views/argument/EntityReferenceArgument.php
Provides the name to use for the summary, defaults to the name field.
FullDate::summaryName in core/modules/views/src/Plugin/views/argument/FullDate.php
Provides the name to use for the summary, defaults to 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, defaults to the name field.

... See full list

File

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

Class

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

Namespace

Drupal\views\Plugin\views\argument

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal