Casey

Full-Stack Developer

#drupal8 #js

Trigger a Drupal 8 UI Dialog from JS

let url = '/user'
Drupal.ajax({
    url,
    dialog: {
        'width': 'auto',
        'maxWidth': 500
    },
    dialogType: 'modal'
}).execute()