You are here

public function SimpleMegaMenuRevisionDeleteForm::__construct in Simple Mega Menu 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/SimpleMegaMenuRevisionDeleteForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionDeleteForm::__construct()

Constructs a new SimpleMegaMenuRevisionDeleteForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

File

src/Form/SimpleMegaMenuRevisionDeleteForm.php, line 58

Class

SimpleMegaMenuRevisionDeleteForm
Provides a form for deleting a Simple mega menu revision.

Namespace

Drupal\simple_megamenu\Form

Code

public function __construct(EntityStorageInterface $entity_storage, Connection $connection, DateFormatter $date_formatter) {
  $this->simpleMegaMenuStorage = $entity_storage;
  $this->connection = $connection;
  $this->dateFormatter = $date_formatter;
}