public function ParagraphEditForm::form in Paragraphs Edit 8.2
Gets the actual form array to be built.
Overrides ContentEntityForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Form/ ParagraphEditForm.php, line 51
Class
- ParagraphEditForm
- ParagraphEditForm class.
Namespace
Drupal\paragraphs_edit\FormCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
$form['#title'] = $this
->t('Edit @lineage', [
'@lineage' => $this
->lineageInspector()
->getLineageString($this->entity),
]);
return $form;
}