You are here

public function RecipientTypeBase::onDependencyRemoval in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/Plugin/RecipientTypeBase.php \Drupal\workbench_email\Plugin\RecipientTypeBase::onDependencyRemoval()

Informs the plugin that a dependency of the recipient type 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 template settings have been changed.

Overrides RecipientTypeInterface::onDependencyRemoval

See also

\Drupal\Core\Config\ConfigEntityInterface::onDependencyRemoval()

2 methods override RecipientTypeBase::onDependencyRemoval()
EmailField::onDependencyRemoval in src/Plugin/RecipientType/EmailField.php
Informs the plugin that a dependency of the recipient type will be deleted.
Role::onDependencyRemoval in src/Plugin/RecipientType/Role.php
Informs the plugin that a dependency of the recipient type will be deleted.

File

src/Plugin/RecipientTypeBase.php, line 150

Class

RecipientTypeBase
Provides a base class for Recipient type plugins.

Namespace

Drupal\workbench_email\Plugin

Code

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