You are here

public function BlockForm::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::__construct()

Constructs a BlockForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Executable\ExecutableManagerInterface $manager: The ConditionManager for building the visibility UI.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The lazy context repository service.

\Drupal\Core\Language\LanguageManagerInterface $language: The language manager.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

File

core/modules/block/src/BlockForm.php, line 90
Contains \Drupal\block\BlockForm.

Class

BlockForm
Provides form for block instance forms.

Namespace

Drupal\block

Code

public function __construct(EntityManagerInterface $entity_manager, ExecutableManagerInterface $manager, ContextRepositoryInterface $context_repository, LanguageManagerInterface $language, ThemeHandlerInterface $theme_handler) {
  $this->storage = $entity_manager
    ->getStorage('block');
  $this->manager = $manager;
  $this->contextRepository = $context_repository;
  $this->language = $language;
  $this->themeHandler = $theme_handler;
}