function ModalForm::getDataDialogOptions

Same name in other branches
  1. 4.0.x modules/form_api_example/src/Form/ModalForm.php \Drupal\form_api_example\Form\ModalForm::getDataDialogOptions()

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 modules/form_api_example/src/Form/ModalForm.php
Implements the submit handler for the modal dialog AJAX call.
ModalForm::buildForm in modules/form_api_example/src/Form/ModalForm.php
Form constructor.

File

modules/form_api_example/src/Form/ModalForm.php, line 51

Class

ModalForm
Implements the ModalForm form controller.

Namespace

Drupal\form_api_example\Form

Code

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