function Type::node_type

2 calls to Type::node_type()
Type::summary_name in drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php
Override the behavior of summary_name(). Get the user friendly version of the node type.
Type::title in drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php
Override the behavior of title(). Get the user friendly version of the node type.

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php, line 39
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 node_type($type) {
  $output = node_type_get_label($type);
  if (empty($output)) {
    $output = t('Unknown content type');
  }
  return check_plain($output);
}