public function ColorForm::__construct in Color API 8
Constructs a ColorForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entityTypeManager.
\Drupal\Core\TypedData\TypedDataManagerInterface $typedDataManager: The Typed Data manager.
\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.
\Drupal\colorapi\DataType\ColorapiServiceInterface $colorapiService: The Color API service.
File
- src/
Form/ ColorForm.php, line 63
Class
- ColorForm
- Form handler for the Color add and edit forms.
Namespace
Drupal\colorapi\FormCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, TypedDataManagerInterface $typedDataManager, AccountProxyInterface $currentUser, ModuleHandlerInterface $moduleHandler, ColorapiServiceInterface $colorapiService) {
$this->entityTypeManager = $entityTypeManager;
$this->typedDataManager = $typedDataManager;
$this->currentUser = $currentUser;
$this->moduleHandler = $moduleHandler;
$this->colorapiService = $colorapiService;
}