TYPO3 CMS  TYPO3_8-7
FinisherContext.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It originated from the Neos.Form package (www.neos.io)
9  *
10  * It is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU General Public License, either version 2
12  * of the License, or any later version.
13  *
14  * For the full copyright and license information, please read the
15  * LICENSE.txt file that was distributed with this source code.
16  *
17  * The TYPO3 project - inspiring people to share!
18  */
19 
24 
34 {
35 
41  protected $cancelled = false;
42 
48  protected $formRuntime;
49 
55  protected $controllerContext;
56 
63 
70  {
71  $this->formRuntime = $formRuntime;
72  $this->controllerContext = $controllerContext;
73  }
74 
78  public function initializeObject()
79  {
80  $this->finisherVariableProvider = GeneralUtility::makeInstance(ObjectManager::class)
81  ->get(FinisherVariableProvider::class);
82  }
83 
89  public function cancel()
90  {
91  $this->cancelled = true;
92  }
93 
100  public function isCancelled(): bool
101  {
102  return $this->cancelled;
103  }
104 
111  public function getFormRuntime(): FormRuntime
112  {
113  return $this->formRuntime;
114  }
115 
122  public function getFormValues(): array
123  {
124  return $this->formRuntime->getFormState()->getFormValues();
125  }
126 
132  {
134  }
135 
141  {
143  }
144 }
static makeInstance($className,... $constructorArguments)
__construct(FormRuntime $formRuntime, ControllerContext $controllerContext)