You are here

protected function BaseDependencyCollector::getCalculator in Dependency Calculation 8

Gets the dependency calculator.

Return value

\Drupal\depcalc\DependencyCalculator The dependency calculator.

File

src/EventSubscriber/DependencyCollector/BaseDependencyCollector.php, line 39

Class

BaseDependencyCollector
An abstract class with helpful methods for all dependency collectors.

Namespace

Drupal\depcalc\EventSubscriber\DependencyCollector

Code

protected function getCalculator() {
  return \Drupal::service('entity.dependency.calculator');
}