function WorkflowTypeBase::onDependencyRemoval

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::onDependencyRemoval()
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::onDependencyRemoval()
  3. 11.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::onDependencyRemoval()

Informs the plugin that a dependency of the workflow will be deleted.

@todo https://www.drupal.org/node/2579743 make part of a generic interface.

Parameters

array $dependencies: An array of dependencies that will be deleted keyed by dependency type.

Return value

bool TRUE if the workflow settings have been changed, FALSE if not.

Overrides WorkflowTypeInterface::onDependencyRemoval

1 call to WorkflowTypeBase::onDependencyRemoval()
ContentModeration::onDependencyRemoval in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Informs the plugin that a dependency of the workflow will be deleted.
2 methods override WorkflowTypeBase::onDependencyRemoval()
ComplexTestType::onDependencyRemoval in core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/ComplexTestType.php
Informs the plugin that a dependency of the workflow will be deleted.
ContentModeration::onDependencyRemoval in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Informs the plugin that a dependency of the workflow will be deleted.

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 101

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function onDependencyRemoval(array $dependencies) {
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.