public function SimpleMegaMenuRevisionDeleteForm::__construct in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x 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\FormCode
public function __construct(EntityStorageInterface $entity_storage, Connection $connection, DateFormatter $date_formatter) {
$this->simpleMegaMenuStorage = $entity_storage;
$this->connection = $connection;
$this->dateFormatter = $date_formatter;
}