Commit 42e575a2 authored by xjm's avatar xjm

Issue #2851603 by Sam152: Add inline documentation to content moderation...

Issue #2851603 by Sam152: Add inline documentation to content moderation onDependencyRemoval() that describes what's happening
parent 7d18091b
...@@ -166,10 +166,11 @@ public function status() { ...@@ -166,10 +166,11 @@ public function status() {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function onDependencyRemoval(array $dependencies) { public function onDependencyRemoval(array $dependencies) {
$changed = $this->getTypePlugin()->onDependencyRemoval($dependencies); // Give the parent method and the workflow type plugin a chance to react
// Ensure the parent method is called in order to process dependencies that // to removed dependencies and report if either of these two made a change.
// affect third party settings. $parent_changed_entity = parent::onDependencyRemoval($dependencies);
return parent::onDependencyRemoval($dependencies) || $changed; $plugin_changed_entity = $this->getTypePlugin()->onDependencyRemoval($dependencies);
return $plugin_changed_entity || $parent_changed_entity;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment