You are here

function PanelizerEntityDefault::get_default_display in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::get_default_display()

Provide a default display for newly panelized entities.

This should be implemented by the entity plugin.

Overrides PanelizerEntityInterface::get_default_display

4 calls to PanelizerEntityDefault::get_default_display()
PanelizerEntityDefault::get_internal_default_panelizer in plugins/entity/PanelizerEntityDefault.class.php
An internal representation of a panelizer object, used to seed when we have none and want something to get started.
PanelizerEntityDefault::hook_entity_load in plugins/entity/PanelizerEntityDefault.class.php
PanelizerEntityTaxonomyTerm::get_default_display in plugins/entity/PanelizerEntityTaxonomyTerm.class.php
Provide a default display for newly panelized entities.
PanelizerEntityUser::get_default_display in plugins/entity/PanelizerEntityUser.class.php
Provide a default display for newly panelized entities.
3 methods override PanelizerEntityDefault::get_default_display()
PanelizerEntityNode::get_default_display in plugins/entity/PanelizerEntityNode.class.php
Provide a default display for newly panelized entities.
PanelizerEntityTaxonomyTerm::get_default_display in plugins/entity/PanelizerEntityTaxonomyTerm.class.php
Provide a default display for newly panelized entities.
PanelizerEntityUser::get_default_display in plugins/entity/PanelizerEntityUser.class.php
Provide a default display for newly panelized entities.

File

plugins/entity/PanelizerEntityDefault.class.php, line 1340
Base class for the Panelizer Entity plugin.

Class

PanelizerEntityDefault
Base class for the Panelizer Entity plugin.

Code

function get_default_display() {

  // This is a straight up empty display.
  $display = panels_new_display();
  $display->layout = 'flexible';
  return $display;
}