function entity_test_delete_bundle
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_delete_bundle()
- 8.9.x core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_delete_bundle()
- 10 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_delete_bundle()
Deletes a bundle for entity_test entities.
Parameters
string $bundle: The machine-readable name of the bundle to delete.
string $entity_type: (optional) The entity type for which the bundle is deleted. Defaults to 'entity_test'.
Deprecated
in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.
See also
https://www.drupal.org/node/3497049
File
-
core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module, line 51
Code
function entity_test_delete_bundle($bundle, $entity_type = 'entity_test') {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use \\Drupal\\entity_test\\EntityTestHelper::deleteBundle() instead. See https://www.drupal.org/node/3497049', E_USER_DEPRECATED);
EntityTestHelper::deleteBundle($bundle, $entity_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.