Add a postExecute() step to action plugins

Created on 22 May 2013, about 11 years ago
Updated 25 June 2023, about 1 year ago

Follow-up for #2001190: Use derivatives for action plugins β†’

+class SaveComment extends ActionBase {
+  public function execute($comment) {
+    $comment->save();
+    Cache::invalidateTags(array('content' => TRUE));
+  }
+}
Sounds like we want a postExecute() method that would run after all of the passed entities have been processed (for invalidating tags or doing any other cleanup).
πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024