function views_plugin_display_i18n_page::get_path in i18n page views 7
Return the base path to use for this display based on language interface
Overrides views_plugin_display::get_path
File
- ./
views_plugin_display_i18n_page.inc, line 236 - Contains the i18n page display plugin.
Class
- views_plugin_display_i18n_page
- The plugin that handles a full page.
Code
function get_path() {
global $language;
if ($this
->has_path()) {
return $this
->get_option('path_' . $language->language);
}
$display_id = $this
->get_link_display();
if ($display_id && !empty($this->view->display[$display_id]) && is_object($this->view->display[$display_id]->handler)) {
return $this->view->display[$display_id]->handler
->get_path();
}
}