I met an issue with drush cim when importing a webform (not modified moreover). It asked me to delete all webform submissions before import, what I cannot do of course.
So I googled for a way to prevent exports of some yml with cex. I found the command drush cexy on drushcommands.com and tried to add the library with : composer require "drupal/drush_cmi_tools:~2.0"
But I received "Could not find package drupal/drush_cmi_tools."
Why ? Does this package exists ? There is no git repo neither.
Did somebody succeeded to use drush cexy and cimy ?
I am trying to add custom validations in user_form. For this purpose, I need to get the details of user (for which the form is being filled/edited.....not necessarily the currently logged in user. ... as current user could be Admin)
How do I get user object in such case
Please note that
$user = \Drupal::currentUser() ...
is not useful here ... as current user could be Admin also