You are here

public function PluginRevisionController::__construct in Diff 8

Constructs a PluginRevisionController object.

Parameters

\Drupal\diff\DiffEntityComparison $entity_comparison: The diff entity comparison service.

\Drupal\diff\DiffLayoutManager $diff_layout_manager: The diff layout service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/Controller/PluginRevisionController.php, line 60

Class

PluginRevisionController
Base class for controllers that return responses on entity revision routes.

Namespace

Drupal\diff\Controller

Code

public function __construct(DiffEntityComparison $entity_comparison, DiffLayoutManager $diff_layout_manager, RequestStack $request_stack) {
  $this->config = $this
    ->config('diff.settings');
  $this->diffLayoutManager = $diff_layout_manager;
  $this->entityComparison = $entity_comparison;
  $this->requestStack = $request_stack;
}