Created
February 9, 2022 15:27
-
-
Save JPustkuchen/b07f719523e9d58b502c4175027289bf to your computer and use it in GitHub Desktop.
Drupal 8 / 9: Delete Entity Bundle ($configEntityBildText)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Delete paragraph example_bundle bundle! | |
/** @var \Drupal\Core\Config\Entity\ConfigEntityStorage $entity_storage */ | |
$entity_storage = \Drupal::entityTypeManager()->getStorage('paragraphs_type'); | |
$configEntityBildText = $entity_storage->load('example_bundle'); | |
$configEntityBildText->delete(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment