You are here

public function BlockStyleForm::__construct in Block Style Plugins 8.2

Constructs a BlockStylesForm object.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\block_style_plugins\Plugin\BlockStyleManager $blockStyleManager: The Block Style Manager.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: An Entity Repository instance.

File

src/Form/BlockStyleForm.php, line 81

Class

BlockStyleForm
Provides a form for applying styles to a block.

Namespace

Drupal\block_style_plugins\Form

Code

public function __construct(FormBuilderInterface $form_builder, BlockStyleManager $blockStyleManager, EntityRepositoryInterface $entityRepository) {
  $this->formBuilder = $form_builder;
  $this->blockStyleManager = $blockStyleManager;
  $this->entityRepository = $entityRepository;
}