You are here

public function ChainGroupPermissionCalculatorInterface::addCalculator in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Access/ChainGroupPermissionCalculatorInterface.php \Drupal\group\Access\ChainGroupPermissionCalculatorInterface::addCalculator()

Adds a calculator.

Parameters

\Drupal\group\Access\GroupPermissionCalculatorInterface $calculator: The calculator.

Return value

mixed

1 method overrides ChainGroupPermissionCalculatorInterface::addCalculator()
ChainGroupPermissionCalculator::addCalculator in src/Access/ChainGroupPermissionCalculator.php
Adds a calculator.

File

src/Access/ChainGroupPermissionCalculatorInterface.php, line 23

Class

ChainGroupPermissionCalculatorInterface
Runs the added calculators one by one until the full permissions are built.

Namespace

Drupal\group\Access

Code

public function addCalculator(GroupPermissionCalculatorInterface $calculator);