public function PanelizerEntityDefault::get_default_display_name in Panelizer 7.3
Determine the default display name for a given bundle & view mode combination.
Overrides PanelizerEntityInterface::get_default_display_name
3 calls to PanelizerEntityDefault::get_default_display_name()
- PanelizerEntityDefault::has_default_panel in plugins/
entity/ PanelizerEntityDefault.class.php - Determine if a bundle has a default display.
- PanelizerEntityDefault::hook_entity_load in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::hook_field_attach_form in plugins/
entity/ PanelizerEntityDefault.class.php
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1367 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function get_default_display_name($bundle, $view_mode = 'page_manager') {
$variable_name = $this
->get_default_display_variable_name($bundle, $view_mode);
// If this has not been set previously, use the 'default' as the default
// selection.
$default_value = variable_get($variable_name, FALSE);
if (empty($default_value)) {
$default_value = $this
->get_default_display_default_name($bundle, $view_mode);
}
return $default_value;
}