вот что я сделал на данный момент в своем контроллер:
Код: Выделить всё
namespace Drupal\my_account\Controller
use Drupal\user\ProfileForm
class MyAccountController{
public function content(){
$entity = \Drupal::entityManager()
->getStorage('user')
->create(array());
$formObject = \Drupal::entityManager()
->getFormObject('user', 'default')
->setEntity($entity);
$form = \Drupal::formBuilder()->getForm($formObject);
return ['form'=>$form];
}
}
Подробнее здесь: https://stackoverflow.com/questions/526 ... tom-module
Мобильная версия