protected function FeedsEntityProcessor::bundleLabel in Feeds entity processor 7
Returns the translated label for the bundle.
Return value
string|false The translated label, or false if the entity does not have a label.
1 call to FeedsEntityProcessor::bundleLabel()
- FeedsEntityProcessor::configForm in src/
FeedsEntityProcessor.inc - Overrides parent::configForm().
File
- src/
FeedsEntityProcessor.inc, line 41 - Contains FeedsEntityProcessor.
Class
- FeedsEntityProcessor
- Creates entities from feed items.
Code
protected function bundleLabel() {
if (!($bundle_key = $this
->bundleKey())) {
return FALSE;
}
try {
$property = $this
->entityWrapper()
->getPropertyInfo($bundle_key);
} catch (EntityMetadataWrapperException $e) {
// Ignore any metadata wrapper exceptions.
}
return isset($property['label']) ? check_plain($property['label']) : t('Bundle');
}