You are here

function hook_entity_bundle_info_alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/entity.api.php \hook_entity_bundle_info_alter()

Alter the bundles for entity types.

Parameters

array $bundles: An array of bundles, keyed first by entity type, then by bundle name.

See also

entity_get_bundles()

hook_entity_bundle_info()

Related topics

2 functions implement hook_entity_bundle_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

content_translation_entity_bundle_info_alter in core/modules/content_translation/content_translation.module
Implements hook_entity_bundle_info_alter().
forum_entity_bundle_info_alter in core/modules/forum/forum.module
Implements hook_entity_bundle_info_alter().

File

core/lib/Drupal/Core/Entity/entity.api.php, line 738
Hooks and documentation related to entities.

Code

function hook_entity_bundle_info_alter(&$bundles) {
  $bundles['user']['user']['label'] = t('Full account');
}