hook_entity_bundle_info_alter(&$bundles)
Alter the bundles for entity types.
Parameters
array $bundles: An array of bundles, keyed first by entity type, then by bundle name.
See also
Drupal\Core\Entity\EntityTypeBundleInfo::getBundleInfo()
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/lib/Drupal/Core/Entity/entity.api.php, line 746
- Hooks and documentation related to entities.
Code
function hook_entity_bundle_info_alter(&$bundles) { $bundles['user']['user']['label'] = t('Full account'); }
Please login to continue.