Override the behavior of summary_name(). Get the user friendly version
of the node type.
Overrides String::summary_name
File
- drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php, line 27
- Definition of Drupal\node\Plugin\views\argument\Type.
Class
- Type
- Argument handler to accept a node type.
Namespace
Drupal\node\Plugin\views\argument
Code
function summary_name($data) {
return $this
->node_type($data->{$this->name_alias});
}