You are here

function media_entity_update_8003 in Media entity 8

Same name and namespace in other branches
  1. 8.2 media_entity.install \media_entity_update_8003()

Ensure Entity API is installed.

File

./media_entity.install, line 113
Install, uninstall and update hooks for Media entity module.

Code

function media_entity_update_8003() {
  if (!_media_entity_check_entity_version()) {
    throw new \Drupal\Core\Utility\UpdateException('Entity API >= 8.x-1.0-alpha3 (drupal.org/project/entity) module is now a dependency and needs to be installed before running updates.');
  }
}