function EntityDeleteForm::getConfigNamesToDelete

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDeleteForm.php \Drupal\Core\Entity\EntityDeleteForm::getConfigNamesToDelete()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityDeleteForm.php \Drupal\Core\Entity\EntityDeleteForm::getConfigNamesToDelete()
  3. 10 core/lib/Drupal/Core/Entity/EntityDeleteForm.php \Drupal\Core\Entity\EntityDeleteForm::getConfigNamesToDelete()

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.

1 call to EntityDeleteForm::getConfigNamesToDelete()
EntityDeleteForm::buildForm in core/lib/Drupal/Core/Entity/EntityDeleteForm.php
Form constructor.
1 method overrides EntityDeleteForm::getConfigNamesToDelete()
FieldConfigDeleteForm::getConfigNamesToDelete in core/modules/field_ui/src/Form/FieldConfigDeleteForm.php
Returns config names to delete for the deletion confirmation 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(),
    ];
}

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