public function EntityFlagActionForm::__construct in farmOS 2.x
Constructs an EntityFlagActionForm form object.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Session\AccountInterface $user: The current user.
File
- modules/
core/ flag/ src/ Form/ EntityFlagActionForm.php, line 84
Class
- EntityFlagActionForm
- Provides an entity flag action form.
Namespace
Drupal\farm_flag\FormCode
public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, AccountInterface $user) {
$this->tempStore = $temp_store_factory
->get('entity_flag_confirm');
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->user = $user;
}