You are here

public function WorkflowConfigTransitionFormBase::__construct in Workflow 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

Overrides ConfigFormBase::__construct

File

src/Form/WorkflowConfigTransitionFormBase.php, line 56

Class

WorkflowConfigTransitionFormBase
Defines a class to build a draggable listing of Workflow Config Transitions entities.

Namespace

Drupal\workflow\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerInterface $logger) {

  // N.B. The $this->type and $this->entitiesKey must be set in the var section.
  parent::__construct($config_factory);
  $this->logger = $logger;

  // Get the Workflow from the page.
  $this->workflow = workflow_url_get_workflow();
}