public function PanelizerEntityDefault::get_bundle_title in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::get_bundle_title()
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1655 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function get_bundle_title($bundle) {
$entity_info = entity_get_info($this->entity_type);
return isset($entity_info['bundles'][$bundle]['label']) ? $entity_info['bundles'][$bundle]['label'] : '';
}