function BundleEntityDeleteForm::getAdditionalReasonsToPreventDeletion

Gets a list of additional reasons preventing deletion of the bundle entity.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup[] An array of translated strings, each one giving a separate reason for preventing deletion. These are shown each in a paragraph on the form. If the array is empty, and there are no content entities, then deletion is allowed.

File

core/lib/Drupal/Core/Entity/Form/BundleEntityDeleteForm.php, line 123

Class

BundleEntityDeleteForm
A generic entity delete form for entities which are bundles.

Namespace

Drupal\Core\Entity\Form

Code

protected function getAdditionalReasonsToPreventDeletion() : array {
  return [];
}

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