3declare(strict_types=1);
42 $clone->contents[] = $entry;
57 $signal = $this->signal_generator->create();
58 $signal->addOption(
'entry_id', $entry_id);
59 $signal->addOption(
'action', self::ENTRY_ACTION_TRIGGER);
60 $this->trigger_signals[] = $signal;
68 foreach ($clone->getContents() as $k => $v) {
69 $new_contents[$k] =
$f($k, $v);
71 $clone->contents = $new_contents;
An exception for terminatinating execution or to throw for unit testing.
withAdditionalEntry($entry)
const ENTRY_ACTION_TRIGGER
getTriggerSignal(string $entry_id)
withMappedSubNodes(callable $f)
Bulky Link - a visually enriched link that looks like a button but behaves like a link.
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.