This describes commonalities between the different modals.
getCancelButtonLabel()
Get the label of the cancel button in the footer, as language key.
getContent()
Get the components representing the content of the modal.
withActionButtons(array $buttons)
Get a modal like this with the provided action buttons in the footer.
withCancelButtonLabel($label)
Get the modal like this with the provided cancel button string.
getActionButtons()
Get all action buttons in the footer of the modal.
getTitle()
Get the title of the modal.
Create styles array
The data for the language used.