How to use a content type form as a block I need a page to be half content, half node edit form.
How can I do this? I thought I'd put the content type's form display into a block. Sounds easy enough.
I've been trying contrib and custom modules, but I can't seem to grab the form.
Thought I could get away with something like this.
class EvaluationBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    $node = \Drupal::routeMatch()-&gt;getParameter('node');
    if ($node instanceof \Drupal\node\NodeInterface) {
      $render_array = EntityFormDisplay::collectRenderDisplay($node, 'project_evaluation_form');
      // error_log($render_array);
      return $render_array;
    }
  }
}
Thanks to the comments above, the working module code is here:
project_evaluation_form_block.module
&lt;?php
/**
 * @file
 */
 function project_evaluation_form_block_entity_type_build(array &amp;$entity_types) {
   $entity_types['node']-&gt;setFormClass('project_evaluation_form', 'Drupal\node\NodeForm');
 }

src/Plugin/Block/EvaluationBlock.php
&lt;?php
/**
 * @file
 * Contains \Drupal\article\Plugin\Block\EvaluationBlock.
 */

namespace Drupal\project_evaluation_form_block\Plugin\Block;

use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormInterface;
use Drupal\Core\Entity\Entity\EntityFormDisplay;

/**
 * Provides an 'evaluation' block.
 *
 * @Block(
 *   id = &quot;evaluation_form_block&quot;,
 *   admin_label = @Translation(&quot;Evaluation form block&quot;),
 *   category = @Translation(&quot;Evaluation form block test&quot;)
 * )
 */
class EvaluationBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    $node = \Drupal::routeMatch()-&gt;getParameter('node');
    $edit_form = \Drupal::entityTypeManager()-&gt;getFormObject('node', 'project_evaluation_form')-&gt;setEntity($node);
    return \Drupal::formBuilder()-&gt;getForm($edit_form);
  }
}

Had to adjust the submission settings for the content type to have the save button appear.
And with this, I am able to add this form as a block to a page.