public function ParagraphFormHelperTrait::buildForm in Paragraphs Edit 8.2
Overridden to store the root parent entity.
File
- src/
ParagraphFormHelperTrait.php, line 50
Class
- ParagraphFormHelperTrait
- Provides a helper for paragraph forms.
Namespace
Drupal\paragraphs_editCode
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $root_parent = NULL) {
$this->rootParent = $root_parent;
return parent::buildForm($form, $form_state);
}