public function PanelizerEntityDefault::entity_bundle_label in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::entity_bundle_label()
Get the name of bundles on the entity.
Entity API doesn't give us a way to determine this, so the class must do this.
Return value
A translated, safe string.
Overrides PanelizerEntityInterface::entity_bundle_label
1 call to PanelizerEntityDefault::entity_bundle_label()
- PanelizerEntityDefault::settings_form in plugins/
entity/ PanelizerEntityDefault.class.php - Add entity specific form to the Panelizer settings form.
3 methods override PanelizerEntityDefault::entity_bundle_label()
- PanelizerEntityNode::entity_bundle_label in plugins/
entity/ PanelizerEntityNode.class.php - Get the name of bundles on the entity.
- PanelizerEntityTaxonomyTerm::entity_bundle_label in plugins/
entity/ PanelizerEntityTaxonomyTerm.class.php - Get the name of bundles on the entity.
- PanelizerEntityUser::entity_bundle_label in plugins/
entity/ PanelizerEntityUser.class.php - Get the name of bundles on the entity.
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1670 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function entity_bundle_label() {
$entity_info = entity_get_info($this->entity_type);
return t('@entity bundle', array(
'@entity' => $entity_info['label'],
));
}