public function ConfigureActivityForm::__construct in Activity 8
ConfigureActivityForm constructor.
Parameters
\Drupal\token\TreeBuilderInterface $tree_builder: The tree builder.
\Drupal\token\TokenEntityMapperInterface $entity_mapper: The entity mapper.
\Drupal\Core\Database\Connection $database: The database.
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
\Drupal\Core\Session\SessionManagerInterface $sessionManager: The session manager.
\Drupal\user\PrivateTempStoreFactory $tempStoreFactory: The temp store factory.
\Drupal\activity\QueryActivity $activityService: The activity service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
Overrides MultiStepFormBase::__construct
File
- src/
Form/ ConfigureActivityForm.php, line 109
Class
- ConfigureActivityForm
- Configure activities form.
Namespace
Drupal\activity\FormCode
public function __construct(TreeBuilderInterface $tree_builder, TokenEntityMapperInterface $entity_mapper, Connection $database, AccountInterface $currentUser, SessionManagerInterface $sessionManager, PrivateTempStoreFactory $tempStoreFactory, QueryActivity $activityService, EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler) {
parent::__construct($currentUser, $sessionManager, $tempStoreFactory);
$this->treeBuilder = $tree_builder;
$this->entityMapper = $entity_mapper;
$this->database = $database;
$this->activityService = $activityService;
$this->entityTypeManager = $entityTypeManager;
$this->moduleHandler = $moduleHandler;
$this->label = $this->store
->get('label');
$this->hook = $this->store
->get('hook');
}