You are here

public function CropTypeDeleteForm::__construct in Crop API 8

Same name and namespace in other branches
  1. 8.2 src/Form/CropTypeDeleteForm.php \Drupal\crop\Form\CropTypeDeleteForm::__construct()

Constructs a new CropTypeDeleteForm object.

Parameters

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query object.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation manager.

File

src/Form/CropTypeDeleteForm.php, line 39

Class

CropTypeDeleteForm
Provides a form for crop type deletion.

Namespace

Drupal\crop\Form

Code

public function __construct(QueryFactory $query_factory, TranslationInterface $string_translation) {
  $this->queryFactory = $query_factory;
  $this->translation = $string_translation;
}