function ChangeUserRoleBase::calculateDependencies
Same name in other branches
- 9 core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::calculateDependencies()
- 10 core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::calculateDependencies()
- 11.x core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::calculateDependencies()
Overrides ConfigurableActionBase::calculateDependencies
File
-
core/
modules/ user/ src/ Plugin/ Action/ ChangeUserRoleBase.php, line 83
Class
- ChangeUserRoleBase
- Provides a base class for operations to change a user's role.
Namespace
Drupal\user\Plugin\ActionCode
public function calculateDependencies() {
if (!empty($this->configuration['rid'])) {
$prefix = $this->entityType
->getConfigPrefix() . '.';
$this->addDependency('config', $prefix . $this->configuration['rid']);
}
return $this->dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.