protected function EntityDeleteForm::getConfigNamesToDelete

protected EntityDeleteForm::getConfigNamesToDelete(ConfigEntityInterface $entity)

Returns config names to delete for the deletion confirmation form.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity being deleted.

Return value

string[] A list of configuration names that will be deleted by this form.

File

core/lib/Drupal/Core/Entity/EntityDeleteForm.php, line 56

Class

EntityDeleteForm
Provides a generic base class for an entity deletion form.

Namespace

Drupal\Core\Entity

Code

protected function getConfigNamesToDelete(ConfigEntityInterface $entity) {
  return [$entity->getConfigDependencyName()];
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDeleteForm.php/function/EntityDeleteForm::getConfigNamesToDelete/8.1.x