public function FeedType::calculateDependencies in Feeds 8.3
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
1 call to FeedType::calculateDependencies()
- FeedType::onDependencyRemoval in src/
Entity/ FeedType.php - Informs the entity that entities it depends on will be deleted.
File
- src/
Entity/ FeedType.php, line 649
Class
- FeedType
- Defines the Feeds feed type entity.
Namespace
Drupal\feeds\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
// Calculate plugin dependencies for each target plugin.
// @todo support other plugin types as well.
foreach ($this
->getMappings() as $delta => $mapping) {
try {
$plugin = $this
->getTargetPlugin($delta);
$this
->calculatePluginDependencies($plugin);
} catch (MissingTargetException $e) {
// Log an error when a target is not found.
watchdog_exception('feeds', $e);
}
}
return $this;
}