Skip to content
Snippets Groups Projects
Commit a885a625 authored by megachriz's avatar megachriz Committed by MegaChriz
Browse files

Issue #2637118 by MegaChriz: Use "plural label" for "label plural" from entity info if available.

parent 99d3437c
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,16 @@ abstract class FeedsProcessor extends FeedsPlugin { ...@@ -193,7 +193,16 @@ abstract class FeedsProcessor extends FeedsPlugin {
* 'label plural' ... the plural label of an entity type. * 'label plural' ... the plural label of an entity type.
*/ */
protected function entityInfo() { protected function entityInfo() {
return entity_get_info($this->entityType()); $info = entity_get_info($this->entityType());
// Entity module has defined the plural label in "plural label" instead of
// "label plural". So if "plural label" is defined, this will have priority
// over "label plural".
if (isset($info['plural label'])) {
$info['label plural'] = $info['plural label'];
}
return $info;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment