public function PanelizerEntityDefault::has_default_panel in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::has_default_panel()
Determine if a bundle has a default panel.
Overrides PanelizerEntityInterface::has_default_panel
3 calls to PanelizerEntityDefault::has_default_panel()
- PanelizerEntityDefault::hook_entity_load in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::hook_field_attach_form in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::page_settings in plugins/
entity/ PanelizerEntityDefault.class.php - Switched page callback to give the settings form.
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1233 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function has_default_panel($bundle) {
return $this
->is_panelized($bundle) && !empty($this->plugin['bundles'][$bundle]['default']);
}