Как получить код контактной формы в DRUPAL8?
Как получить код контактной формы в DRUPAL8?
Мб кому пригодится
$message = \Drupal::entityManager()->getStorage('contact_message')->create(array(
'contact_form' => ,
));
$form = \Drupal::service('entity.form_builder')->getForm($message);
$txtBlock = \Drupal::service('renderer')->render($form);
Комментарии
См. http://cgit.drupalcode.org/drupal/tree/core/modules/contact
Мб кому пригодится