/** * {@inheritdoc} */ public function entityForm(array $entity_form, FormStateInterface $form_state) { $entity_form = parent::entityForm($entity_form, $form_state); // Remove the "Revision log" textarea, it can't be disabled in the // form display and doesn't make sense in the inline form context. $entity_form['revision_log']['#access'] = FALSE; return $entity_form; }
/** * {@inheritdoc} */ public function entityForm($entity_form, FormStateInterface $form_state) { $entity_form = parent::entityForm($entity_form, $form_state); $entity_form['#entity_builders'][] = [get_class($this), 'populateTitle']; return $entity_form; }