You are here

public function TagForm::__construct in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Form/TagForm.php \Drupal\xbbcode\Form\TagForm::__construct()

Constructs a new TagForm.

Parameters

\Drupal\Core\Template\TwigEnvironment $twig: The twig service.

\Drupal\Core\Entity\EntityStorageInterface $storage: The tag storage.

\Drupal\xbbcode\TagPluginManager $manager: The tag plugin manager.

Overrides TagFormBase::__construct

File

src/Form/TagForm.php, line 45

Class

TagForm
Base form for creating and editing custom tags.

Namespace

Drupal\xbbcode\Form

Code

public function __construct(TwigEnvironment $twig, EntityStorageInterface $storage, TagPluginManager $manager) {
  parent::__construct($twig);
  $this->storage = $storage;
  $this->manager = $manager;
}