public function ChainGroupPermissionCalculator::addCalculator in Group 2.0.x
Same name and namespace in other branches
- 8 src/Access/ChainGroupPermissionCalculator.php \Drupal\group\Access\ChainGroupPermissionCalculator::addCalculator()
Adds a calculator.
Parameters
\Drupal\group\Access\GroupPermissionCalculatorInterface $calculator: The calculator.
Return value
mixed
Overrides ChainGroupPermissionCalculatorInterface::addCalculator
File
- src/
Access/ ChainGroupPermissionCalculator.php, line 73
Class
- ChainGroupPermissionCalculator
- Collects group permissions for an account.
Namespace
Drupal\group\AccessCode
public function addCalculator(GroupPermissionCalculatorInterface $calculator) {
$this->calculators[] = $calculator;
}