You are here

protected function FeedsProcessor::entityInfo in Feeds 7.2

Wrapper around entity_get_info().

The entity_get_info() function is wrapped so that extending classes can override it and add more entity information.

Allowed additional keys:

  • label plural the plural label of an entity type.
14 calls to FeedsProcessor::entityInfo()
FeedsNodeProcessor::entityInfo in plugins/FeedsNodeProcessor.inc
Implements parent::entityInfo().
FeedsProcessor::clear in plugins/FeedsProcessor.inc
Removes all imported items for a source.
FeedsProcessor::configDefaults in plugins/FeedsProcessor.inc
Overrides FeedsConfigurable::configDefaults().
FeedsProcessor::configForm in plugins/FeedsProcessor.inc
Returns configuration form for this object.
FeedsProcessor::dependencies in plugins/FeedsProcessor.inc
Overrides FeedsPlugin::dependencies().

... See full list

3 methods override FeedsProcessor::entityInfo()
FeedsNodeProcessor::entityInfo in plugins/FeedsNodeProcessor.inc
Implements parent::entityInfo().
FeedsTermProcessor::entityInfo in plugins/FeedsTermProcessor.inc
Implements parent::entityInfo().
FeedsUserProcessor::entityInfo in plugins/FeedsUserProcessor.inc
Implements parent::entityInfo().

File

plugins/FeedsProcessor.inc, line 342
Contains FeedsProcessor and related classes.

Class

FeedsProcessor
Abstract class, defines interface for processors.

Code

protected function entityInfo() {
  $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;
}