public function PanelizerEntityDefault::has_panel_choice in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::has_panel_choice()
Determine if a bundle is allowed choices.
Overrides PanelizerEntityInterface::has_panel_choice
1 call to PanelizerEntityDefault::has_panel_choice()
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1240 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function has_panel_choice($bundle) {
return !empty($this->plugin['bundles'][$bundle]['choice']);
}