function Type::node_type in Views (for Drupal 7) 8.3
2 calls to Type::node_type()
- Type::summary_name in lib/
Views/ node/ Plugin/ views/ argument/ Type.php - Override the behavior of summary_name(). Get the user friendly version of the node type.
- Type::title in lib/
Views/ node/ Plugin/ views/ argument/ Type.php - Override the behavior of title(). Get the user friendly version of the node type.
File
- lib/
Views/ node/ Plugin/ views/ argument/ Type.php, line 39 - Definition of Views\node\Plugin\views\argument\Type.
Class
- Type
- Argument handler to accept a node type.
Namespace
Views\node\Plugin\views\argumentCode
function node_type($type) {
$output = node_type_get_label($type);
if (empty($output)) {
$output = t('Unknown content type');
}
return check_plain($output);
}