You are here

public function PanelizerEntityDefault::get_default_display_default_name in Panelizer 7.3

Determine the default name for the default object.

Overrides PanelizerEntityInterface::get_default_display_default_name

3 calls to PanelizerEntityDefault::get_default_display_default_name()
PanelizerEntityDefault::get_default_display_name in plugins/entity/PanelizerEntityDefault.class.php
Determine the default display name for a given bundle & view mode combination.
PanelizerEntityDefault::hook_entity_insert in plugins/entity/PanelizerEntityDefault.class.php
PanelizerEntityDefault::hook_entity_update in plugins/entity/PanelizerEntityDefault.class.php

File

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

Class

PanelizerEntityDefault
Base class for the Panelizer Entity plugin.

Code

public function get_default_display_default_name($bundle, $view_mode = 'page_manager') {
  $default_name = implode(':', array(
    $this->entity_type,
    $bundle,
    'default',
  ));
  if ($view_mode != 'page_manager') {
    $default_name .= ':' . $view_mode;
  }
  return $default_name;
}