Skip to content
Snippets Groups Projects
Commit 42e575a2 authored by Jess's avatar Jess
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment