You are here

protected static function ModalForm::getDataDialogOptions in Editor Notes 8

Helper method so we can have consistent dialog options.

Return value

string[] An array of jQuery UI elements to pass on to our dialog form.

2 calls to ModalForm::getDataDialogOptions()
ModalForm::ajaxSubmitForm in src/Form/ModalForm.php
Implements the submit handler for the modal dialog AJAX call.
ModalForm::buildForm in src/Form/ModalForm.php
Form constructor.

File

src/Form/ModalForm.php, line 81

Class

ModalForm
Implements the ModalForm form controller.

Namespace

Drupal\editor_note\Form

Code

protected static function getDataDialogOptions() {
  return [
    'width' => '50%',
  ];
}