githubEdit

Entity Definition Update Manager Class

Provides developers with a class to perform automatic entity updates.

circle-exclamation
triangle-exclamation

Support for automatic entity updates has been removed

How to Use Entity Definition Update Manager Class

Customized class for the entity definition update manager.

1. Require the Package in Your Module or Project

Or add the package to your composer.json file

2. Add The Needed Namespaces

Add the following namespace in custom modules or custom installation profiles.

3. Do Any Type of Configuration Import or Updates

Import or update configs in hook install or hook update, or any post install or post update.

4. Run the Drupal Class Resolver for the Instance From the Definition Class

Example Use On Installations

Varbase Core is important number of managed configurations on install. It needed to update entity definitions after that.

Example Use On Updates

Varbase API in some point needed to update configurations in a hook update. It needed to update entity definitions after that. Which did not work without entity definition update.

circle-info

Example Use On Custom Template Config Imports

  • Having custom and managed config templates. Which on import to the active config for selected entity types or fields.

  • Entity definitions need to be auto updated

  • Field definitions need to be auto updated.

circle-info

Have a look at the following commit to use in Custom Config Import Classes

https://git.drupalcode.org/project/varbase_media_header/-/commit/8ae8d4carrow-up-right

When to Use and When Not to Use?

triangle-exclamation
circle-check
circle-info

Must run at least ones at the end of each installation steps for installation profiles like Varbasearrow-up-right, Vardocarrow-up-right, Uber Publisherarrow-up-right.