You are here

public function FlippingBookForm::buildForm in Flipping Book 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides EntityForm::buildForm

File

src/Form/FlippingBookForm.php, line 94

Class

FlippingBookForm
Form controller for Flipping Book edit forms.

Namespace

Drupal\flipping_book\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['file']['widget'][0]['#upload_location'] = $this
    ->getUploadLocation();
  return $form;
}