PHPackages                             vardot/entity-definition-update-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vardot/entity-definition-update-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vardot/entity-definition-update-manager
=======================================

Entity Definition Update Manager - Provides developers with a class to perform automatic entity updates.

1.0.13(5mo ago)1147.2k↑13.4%1GPL-2.0-or-laterPHP

Since Sep 12Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/Vardot/entity-definition-update-manager)[ Packagist](https://packagist.org/packages/vardot/entity-definition-update-manager)[ Docs](https://github.com/Vardot/entity-definition-update-manager)[ RSS](/packages/vardot-entity-definition-update-manager/feed)WikiDiscussions 1.0.x Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (14)Used By (0)

Entity Definition Update Manager
================================

[](#entity-definition-update-manager)

Provides developers with a class to perform automatic entity updates.

Use only in development environment. Not to use on production websites.

### Support for automatic entity updates has been removed

[](#support-for-automatic-entity-updates-has-been-removed)

User deprecated function: `EntityDefinitionUpdateManagerInterface::applyUpdates()` was deprecated in **Drupal** **8.7.0** and was removed before **Drupal 9.0.0**.

How to Use Entity Definition Update Manager Class
-------------------------------------------------

[](#how-to-use-entity-definition-update-manager-class)

Customized class for the entity definition update manager.

### Require the Package in your root composer.json file

[](#require-the-package-in-your-root-composerjson-file)

```
  "vardot/entity-definition-update-manager": "~1.0"

```

### Or require the Package in your Project with a command

[](#or-require-the-package-in-your-project-with-a-command)

```
$ composer require vardot/entity-definition-update-manager:~1.0

```

### 1. Add Needed Namespace

[](#1-add-needed-namespace)

Add the following name space at in custom modules or custom installation profiles.

```
use Vardot\Entity\EntityDefinitionUpdateManager;

```

### 2. Do Any Type of Configuration Import or Updates

[](#2-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.

### 3. Run the Class Resolver for the Instance From the Definition Class

[](#3-run-the-class-resolver-for-the-instance-from-the-definition-class)

```
  // Entity updates to clear up any mismatched entity and/or field definitions
  // And Fix changes were detected in the entity type and field definitions.
  \Drupal::classResolver()
    ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)
    ->applyUpdates();

```

Example Use On Installs
-----------------------

[](#example-use-on-installs)

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

Have a look at the **`varbase_core_install`** hook function

[https://git.drupalcode.org/project/varbase\_core/-/blob/9.0.x/varbase\_core.install#L77](https://git.drupalcode.org/project/varbase_core/-/blob/9.0.x/varbase_core.install#L77)

Example Use On Updates
----------------------

[](#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.

Have a look at the **`varbase_api_update_8702`** hook function

[https://git.drupalcode.org/project/varbase\_api/-/blob/9.0.x/varbase\_api.install#L159](https://git.drupalcode.org/project/varbase_api/-/blob/9.0.x/varbase_api.install#L159)

When to Use and When Not to Use?
--------------------------------

[](#when-to-use-and-when-not-to-use)

**Do not use** when the import/update of configs works in the normal way.

If all configs are in the **`config/install`** and no issues on install.

**Use** when custom managed configs are been imported or updated in a custom order, And custom actions or changes in between imports are being involved.

If the module or profile has number of optional or managed configs. Which located in **`config/optional`** or **`config/managed`** or any other physical locations. Then they are imported or updated with custom Drupal Config Factory or Drupal Install Factory.

**Must run at least ones** at the end of each installation steps for installation profiles like [**Varbase**](https://www.drupal.org/project/varbase), [**Vardoc**](https://www.drupal.org/project/vardoc), [**Uber Publisher**](https://www.drupal.org/project/uber_publisher).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance71

Regular maintenance activity

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Recently: every ~387 days

Total

13

Last Release

161d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1641992?v=4)[Rajab Natshah](/maintainers/Natshah)[@Natshah](https://github.com/Natshah)

![](https://www.gravatar.com/avatar/0a7204f4105511c0cbdfa7f4bf05ce8d7ddb14b26053a1b50e17895c23da12b4?d=identicon)[vardot-devops](/maintainers/vardot-devops)

---

Top Contributors

[![Natshah](https://avatars.githubusercontent.com/u/1641992?v=4)](https://github.com/Natshah "Natshah (22 commits)")

### Embed Badge

![Health badge](/badges/vardot-entity-definition-update-manager/health.svg)

```
[![Health](https://phpackages.com/badges/vardot-entity-definition-update-manager/health.svg)](https://phpackages.com/packages/vardot-entity-definition-update-manager)
```

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.2k6.7k1](/packages/farmos-farmos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
