diff --git a/core/modules/quickedit/src/Form/QuickEditFieldForm.php b/core/modules/quickedit/src/Form/QuickEditFieldForm.php index 69a8442..b73070e 100644 --- a/core/modules/quickedit/src/Form/QuickEditFieldForm.php +++ b/core/modules/quickedit/src/Form/QuickEditFieldForm.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\user\PrivateTempStoreFactory; use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Builds and process a form for editing a single entity field. @@ -46,13 +45,6 @@ class QuickEditFieldForm extends FormBase { protected $nodeTypeStorage; /** - * The typed data validator. - * - * @var \Symfony\Component\Validator\Validator\ValidatorInterface - */ - protected $validator; - - /** * Constructs a new EditFieldForm. * * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory @@ -61,14 +53,11 @@ class QuickEditFieldForm extends FormBase { * The module handler. * @param \Drupal\Core\Entity\EntityStorageInterface $node_type_storage * The node type storage. - * @param \Symfony\Component\Validator\Validator\ValidatorInterface $validator - * The typed data validator service. */ - public function __construct(PrivateTempStoreFactory $temp_store_factory, ModuleHandlerInterface $module_handler, EntityStorageInterface $node_type_storage, ValidatorInterface $validator) { + public function __construct(PrivateTempStoreFactory $temp_store_factory, ModuleHandlerInterface $module_handler, EntityStorageInterface $node_type_storage) { $this->moduleHandler = $module_handler; $this->nodeTypeStorage = $node_type_storage; $this->tempStoreFactory = $temp_store_factory; - $this->validator = $validator; } /** @@ -78,8 +67,7 @@ public static function create(ContainerInterface $container) { return new static( $container->get('user.private_tempstore'), $container->get('module_handler'), - $container->get('entity.manager')->getStorage('node_type'), - $container->get('typed_data_manager')->getValidator() + $container->get('entity.manager')->getStorage('node_type') ); }