public function buildForm(array $form, FormStateInterface $form_state) {
// Based on the logic of Layout Builder's InlineBlock form processing,
// the entity form is being inserted via process callback.
return [
'embedded_entity_form' => [
'#type' => 'container',
'#process' => [
[
static::class,
'processEmbeddedEntityForm',
],
],
'#entity' => $this->entity,
],
];
}