use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\TempStore\PrivateTempStoreFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\Validator\Validator\ValidatorInterface;
/**
* Builds and process a form for editing a single entity field.
*/
protected $nodeTypeStorage;
- /**
- * The typed data validator.
- *
- * @var \Symfony\Component\Validator\Validator\ValidatorInterface
- */
- protected $validator;
-
/**
* Constructs a new EditFieldForm.
*
* 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;
}
/**
return new static(
$container->get('tempstore.private'),
$container->get('module_handler'),
- $container->get('entity.manager')->getStorage('node_type'),
- $container->get('typed_data_manager')->getValidator()
+ $container->get('entity.manager')->getStorage('node_type')
);
}