How to get the side-wide contact form (feedback) individually displayed in a custom block or other page then /contact (e.g. frontpage)?
I've tried this code, but it is not working (are contact forms entities?):
// get default form
// get the entity object
$default_form = \Drupal::config('contact.settings')->get('default_form');
$entity = \Drupal::entityManager()->getStorage('contact_form')->load($default_form);
// get view builder
// render view
$view_builder = \Drupal::entityManager()->getViewBuilder('contact_form');
$full_output = $view_builder->view($entity);
entityManager
is deprecated in favour ofentityTypeManager
(API docs)