You are here

public function BreakLockForm::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/Form/BreakLockForm.php \Drupal\views_ui\Form\BreakLockForm::__construct()

Constructs a \Drupal\views_ui\Form\BreakLockForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object.

File

core/modules/views_ui/src/Form/BreakLockForm.php, line 40

Class

BreakLockForm
Builds the form to break the lock of an edited view.

Namespace

Drupal\views_ui\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, SharedTempStoreFactory $temp_store_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->tempStore = $temp_store_factory
    ->get('views');
}