You are here

public static function EntityUpdate::getEntityTypesToUpdate in Entity Update 2.0.x

Same name and namespace in other branches
  1. 8 src/EntityUpdate.php \Drupal\entity_update\EntityUpdate::getEntityTypesToUpdate()

Get Entity types to update.

Return value

array The list of entities to update.

13 calls to EntityUpdate::getEntityTypesToUpdate()
drush_entity_update in drush/entity_update.drush8.inc
Call back function of entity-update.
EntityCheck::showEntityStatusCli in src/EntityCheck.php
Print entity status to the terminal.
EntityUpdate::basicUpdate in src/EntityUpdate.php
Update all empty entities.
EntityUpdate::safeUpdateEntityType in src/EntityUpdate.php
Update an entity type.
EntityUpdate::safeUpdateMain in src/EntityUpdate.php
Update all entities.

... See full list

File

src/EntityUpdate.php, line 391

Class

EntityUpdate
EntityUpdate Main Class.

Namespace

Drupal\entity_update

Code

public static function getEntityTypesToUpdate($type_id = NULL) {
  $list = entity_update_get_entity_changes();
  foreach ($list as $entity_type_id => $entity_change_summery) {
    if (!$type_id || $type_id == $entity_type_id) {
      $list[$entity_type_id] = $entity_change_summery;
    }
  }
  return $list;
}