You are here

function Type::summaryName in File Entity (fieldable files) 8.2

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

Parameters

$data: The query results for the row.

Overrides StringArgument::summaryName

File

src/Plugin/views/argument/Type.php, line 18

Class

Type
Argument handler to accept a file type.

Namespace

Drupal\file_entity\Plugin\views\argument

Code

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