class EntityTestAttributeBundleClassHooks
Same name and namespace in other branches
- main core/modules/system/tests/modules/entity_test_attribute_bundle_class/src/Hook/EntityTestAttributeBundleClassHooks.php \Drupal\entity_test_attribute_bundle_class\Hook\EntityTestAttributeBundleClassHooks
Hook implementations for entity_test_attribute_bundle_class.
Hierarchy
- class \Drupal\entity_test_attribute_bundle_class\Hook\EntityTestAttributeBundleClassHooks
Expanded class hierarchy of EntityTestAttributeBundleClassHooks
File
-
core/
modules/ system/ tests/ modules/ entity_test_attribute_bundle_class/ src/ Hook/ EntityTestAttributeBundleClassHooks.php, line 14
Namespace
Drupal\entity_test_attribute_bundle_class\HookView source
class EntityTestAttributeBundleClassHooks {
/**
* Implements hook_entity_bundle_info().
*/
public function entityBundleInfo() : array {
$bundles['entity_test']['bundle_class_a']['class'] = EntityTestBundleClassA::class;
$bundles['entity_test']['bundle_class_a']['label'] = 'Bundle class A';
$bundles['entity_test']['bundle_class_a']['translatable'] = TRUE;
$bundles['entity_test']['bundle_class_b']['class'] = EntityTestBundleClassB::class;
$bundles['entity_test']['bundle_class_b']['label'] = 'Bundle class B';
$bundles['entity_test']['bundle_class_b']['translatable'] = TRUE;
return $bundles;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| EntityTestAttributeBundleClassHooks::entityBundleInfo | public | function | Implements hook_entity_bundle_info(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.