/** * {@inheritdoc} */ public function calculateDependencies() { if (!empty($this->configuration['rid'])) { $prefix = $this->entityType->getConfigPrefix() . '.'; $this->addDependency('entity', $prefix . $this->configuration['rid']); } return $this->dependencies; }