- Issue created by @mglaman
- Status changed to Needs review
9 months ago 11:58am 5 March 2024 - πΊπ¦Ukraine sickness29
Now you are able to adjust labels like so and patch will take care of using those labels.
/** * Implements hook_entity_type_alter(). */ function test_module_entity_type_alter(array &$entity_types) { if (isset($entity_types['consumer'])) { $entity_types['consumer']->set('label', t('Test')); $entity_types['consumer']->set('label_collection', t('Tests')); $entity_types['consumer']->set('label_singular', t('test')); $entity_types['consumer']->set('label_plural', t('tests')); } }
-
eojthebrave β
committed 8104a50b on 8.x-1.x
Issue #3404996 by sickness29, mglaman, eojthebrave: Use entity type...
-
eojthebrave β
committed 8104a50b on 8.x-1.x
- Status changed to Fixed
8 months ago 12:17pm 14 March 2024 - πΊπΈUnited States eojthebrave Minneapolis, MN
This is a great addition. Thanks for working on cleaning up all the hard-coded text.
Automatically closed - issue fixed for 2 weeks with no activity.