public function ChangeConnectionRole::calculateDependencies in RedHen CRM 8
File
- modules/
redhen_connection/ src/ Plugin/ Action/ ChangeConnectionRole.php, line 100
Class
- ChangeConnectionRole
- Change the role of a Redhen Connection.
Namespace
Drupal\redhen_connection\Plugin\ActionCode
public function calculateDependencies() {
if (!empty($this->configuration['role'])) {
$prefix = $this->entityType
->getConfigPrefix() . '.';
$this
->addDependency('config', $prefix . $this->configuration['role']);
}
return $this->dependencies;
}