You are here

public function WorkflowTransitionListController::__construct in Workflow 8

Constructs an object.

Parameters

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

src/Controller/WorkflowTransitionListController.php, line 51

Class

WorkflowTransitionListController
Defines a controller to list Transition on entity's Workflow history tab.

Namespace

Drupal\workflow\Controller

Code

public function __construct(DateFormatter $date_formatter, ModuleHandlerInterface $module_handler, RendererInterface $renderer) {

  // These parameters are taken from some random other controller.
  $this->dateFormatter = $date_formatter;
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
}