hook_entity_bundle_info_alter

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()

hook_entity_bundle_info()

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');
}
doc_Drupal
2016-10-29 09:17:57
Comments
Leave a Comment

Please login to continue.