adds a trigger hint for complex operations
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
54bdc95cc1
commit
f0f0a7b43e
|
@ -152,6 +152,7 @@ abstract class ASettings implements ISettings {
|
||||||
'description' => $operator->getDescription(),
|
'description' => $operator->getDescription(),
|
||||||
'fixedEntity' => $operator instanceof ISpecificOperation ? $operator->getEntityId() : '',
|
'fixedEntity' => $operator instanceof ISpecificOperation ? $operator->getEntityId() : '',
|
||||||
'isComplex' => $operator instanceof IComplexOperation,
|
'isComplex' => $operator instanceof IComplexOperation,
|
||||||
|
'triggerHint' => $operator instanceof IComplexOperation ? $operator->getTriggerHint() : '',
|
||||||
];
|
];
|
||||||
}, $operators);
|
}, $operators);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,19 @@ namespace OCP\WorkflowEngine;
|
||||||
*
|
*
|
||||||
* @package OCP\WorkflowEngine
|
* @package OCP\WorkflowEngine
|
||||||
*
|
*
|
||||||
* @sincee 18.0.0
|
* @since 18.0.0
|
||||||
*/
|
*/
|
||||||
interface IComplexOperation extends IOperation { }
|
interface IComplexOperation extends IOperation {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* As IComplexOperation chooses the triggering events itself, a hint has
|
||||||
|
* to be shown to the user so make clear when this operation is becoming
|
||||||
|
* active. This method returns such a translated string.
|
||||||
|
*
|
||||||
|
* Example: "When a file is accessed" (en)
|
||||||
|
*
|
||||||
|
* @since 18.0.0
|
||||||
|
*/
|
||||||
|
public function getTriggerHint(): string;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue