You are here

public function FeedsTermProcessor::vocabulary in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsTermProcessor.inc \FeedsTermProcessor::vocabulary()
  2. 7 plugins/FeedsTermProcessor.inc \FeedsTermProcessor::vocabulary()

Return vocabulary to map to.

2 calls to FeedsTermProcessor::vocabulary()
FeedsTermProcessor::existingEntityId in plugins/FeedsTermProcessor.inc
Get id of an existing feed item term if available.
FeedsTermProcessor::newEntity in plugins/FeedsTermProcessor.inc
Creates a new term in memory and returns it.

File

plugins/FeedsTermProcessor.inc, line 242
FeedsTermProcessor class.

Class

FeedsTermProcessor
Feeds processor plugin. Create taxonomy terms from feed items.

Code

public function vocabulary() {
  if ($vocabulary = taxonomy_vocabulary_machine_name_load($this
    ->bundle())) {
    return $vocabulary;
  }
  throw new Exception(t('No vocabulary defined for Taxonomy Term processor.'));
}