You are here

public function ConfigContentTypes::__construct in Allow a content type only once (Only One) 8

Constructor.

Parameters

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispacher: The event dispacher.

\Drupal\onlyone\OnlyOneInterface $onlyone: The onlyone service.

Overrides ConfigFormBase::__construct

File

src/Form/ConfigContentTypes.php, line 43

Class

ConfigContentTypes
Class ConfigContentTypes.

Namespace

Drupal\onlyone\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EventDispatcherInterface $event_dispacher, OnlyOneInterface $onlyone) {
  parent::__construct($config_factory);
  $this->eventDispacher = $event_dispacher;
  $this->onlyone = $onlyone;
}