You are here

public function ChainGroupPermissionCalculator::addCalculator in Group 8

Same name and namespace in other branches
  1. 2.0.x 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\Access

Code

public function addCalculator(GroupPermissionCalculatorInterface $calculator) {
  $this->calculators[] = $calculator;
}