119 $clone = clone $this;
120 $clone->action_button_label = $action_label;
139 $clone = clone $this;
140 $clone->cancel_button_label = $cancel_label;
An exception for terminatinating execution or to throw for unit testing.
getFormAction()
Get the form action where the action button is sending the IDs of the affected items....
getAffectedItems()
Return the affected items listed in the content by this modal.InterruptiveItem[]
withFormAction($form_action)
Get a modal like this submitting the form to the given form action.Interruptive
getCancelButtonLabel()
Get the label of the cancel button in the footer.string
withActionButtonLabel(string $action_label)
Get a modal like this with the action button labeled according to the parameter.The label will be tra...
getActionButtonLabel()
Get the label of the action button in the footer.string
withAffectedItems(array $items)
Get a modal like this listing the given items in the content section below the message....
getMessage()
Get the message of this modal, displayed below the modals title.string
__construct($title, $message, $form_action, SignalGeneratorInterface $signal_generator)
getTitle()
Get the title of this modal.string
withCancelButtonLabel(string $cancel_label)
Get a modal like this with the cancel button labeled according to the parameter.The label will be tra...
A component is the most general form of an entity in the UI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.