public function CancelButtonSettingsForm::__construct in Entity Form Cancel Button 8
Constructs a CancelButtonSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.
\Drupal\Core\Routing\RequestContext $request_context: The request context.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
Overrides ConfigFormBase::__construct
File
- src/
Form/ CancelButtonSettingsForm.php, line 51
Class
- CancelButtonSettingsForm
- Configure generic settings for the Cancel Button.
Namespace
Drupal\cancel_button\FormCode
public function __construct(ConfigFactoryInterface $config_factory, PathValidatorInterface $path_validator, RequestContext $request_context, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($config_factory);
$this->pathValidator = $path_validator;
$this->requestContext = $request_context;
$this->entityTypeManager = $entity_type_manager;
}