You are here

public function PanelizerEntityTaxonomyTerm::get_page_manager_task_name in Panelizer 7.3

Obtain the machine name of the Page Manager task.

The Page Manager task for the taxonomy_term entity is "term_view", and not the expected "taxonomy_term_view".

Overrides PanelizerEntityDefault::get_page_manager_task_name

File

plugins/entity/PanelizerEntityTaxonomyTerm.class.php, line 119
Class for the Panelizer taxonomy term entity plugin.

Class

PanelizerEntityTaxonomyTerm
Panelizer Entity taxonomy term plugin class.

Code

public function get_page_manager_task_name() {
  if (empty($this->plugin['uses page manager'])) {
    return FALSE;
  }
  else {
    return 'term_view';
  }
}