public function WorkflowTransition::post_execute in Workflow 8
Invokes 'transition post'.
Adds the possibility to invoke the hook from elsewhere.
Parameters
bool $force:
Overrides WorkflowTransitionInterface::post_execute
File
- src/
Entity/ WorkflowTransition.php, line 642
Class
- WorkflowTransition
- Implements an actual, executed, Transition.
Namespace
Drupal\workflow\EntityCode
public function post_execute($force = FALSE) {
// @todo D8: This function post_execute() is not yet used.
workflow_debug(__FILE__, __FUNCTION__, __LINE__);
// @todo D8-port: Test this snippet.
if (!$this
->isEmpty()) {
$user = $this
->getOwner();
\Drupal::moduleHandler()
->invokeAll('workflow', [
'transition post',
$this,
$user,
]);
}
}