+ $form['icon_file'] = [
+ '#title' => $this->t('Paragraph type icon'),
+ '#type' => 'managed_file',
+ '#upload_location' => 'public://paragraphs_type_icon/',
+ '#upload_validators' => [
+ 'file_validate_extensions' => ['png jpg svg'],
+ ],
+ ];
+
+ if ($file = $this->entity->getIconFile()) {
+ $form['icon_file']['#default_value'] = ['target_id' => $file->id()];
+ }
+
+ $form['description'] = [
+ '#title' => t('Description'),
+ '#type' => 'textarea',
+ '#default_value' => $paragraphs_type->getDescription(),
+ '#description' => t('This text will be displayed on the <em>Add new paragraph</em> page.'),
+ ];
+