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);
}