public function AjaxCommentsDeleteForm::__construct in AJAX Comments 8
Constructs an AjaxCommentsDeleteForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\ajax_comments\TempStore $temp_store: The TempStore service.
Overrides ContentEntityForm::__construct
File
- src/
Form/ AjaxCommentsDeleteForm.php, line 44
Class
- AjaxCommentsDeleteForm
- Provides ajax enhancements to core Comment delete form.
Namespace
Drupal\ajax_comments\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, TempStore $temp_store) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->tempStore = $temp_store;
}