You are here

public function PanelizerEntityDefault::has_panel_choice in Panelizer 7.2

Same name and namespace in other branches
  1. 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()
PanelizerEntityDefault::hook_field_attach_form in plugins/entity/PanelizerEntityDefault.class.php

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']);
}