This describes commonalities between the different modals.
withAffectedItems(array $items)
Get a modal like this listing the given items in the content section below the message.
getCancelButtonLabel()
Get the label of the cancel button in the footer.
getTitle()
Get the title of this modal.
getMessage()
Get the message of this modal, displayed below the modals title.
getFormAction()
Get the form action where the action button is sending the IDs of the affected items.
Create styles array
The data for the language used.
getAffectedItems()
Return the affected items listed in the content by this modal.
getActionButtonLabel()
Get the label of the action button in the footer.
withFormAction($form_action)
Get a modal like this submitting the form to the given form action.