| 1 views_handler_field_node_path.inc | public views_handler_field_node_path::construct() |
Override construct function to provide the langcode additional field.
Overrides views_handler_field::construct
File
- core/
modules/ node/ views/ views_handler_field_node_path.inc, line 27 - Handler for node path field.
Class
- views_handler_field_node_path
- Field handler to present the path to the node.
Code
public function construct() {
parent::construct();
$this->additional_fields['nid'] = 'nid';
if (module_exists('translation')) {
$this->additional_fields['langcode'] = array(
'table' => 'node',
'field' => 'langcode',
);
}
}