- * @var \Drupal\Core\Entity\EntityBase|\Drupal\Core\Entity\EntityInterface...

Contribution Date
Technology
Contribution Project
Contribution Details
- * @var \Drupal\Core\Entity\EntityBase|\Drupal\Core\Entity\EntityInterface + * @var \Drupal\user\UserInterface

changing the type hint of $user variable

- protected static $modules = ['system', 'user', 'field']; + protected static $modules = ['system', 'user'];

removing field module

- $this->container->get('entity_type.manager') - ->getFormObject($entity_type, $operation) - ->setEntity($entity);

About this i am not sure , but we are not using this anywhere . So can you please me to understand this get container use-case in buildAccountForm().

Kindly review a patch.

Contribution Author
Files count
1
Patches count
1