function drush_update_entity_definitions

8.0.x drush_update_entity_definitions(&$context)
master drush_update_entity_definitions(&$context)

Apply entity schema updates.

2 string references to 'drush_update_entity_definitions'
drush_update_batch in commands/core/drupal/
Start the database update batch process.
entity_updates_main in commands/core/drupal/
Apply pending entity schema updates.


commands/core/drupal/, line 246
Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line.


function drush_update_entity_definitions(&$context) {
  try {
  catch (EntityStorageException $e) {
    watchdog_exception('update', $e);
    $variables = Error::decodeException($e);
    // The exception message is run through
    // \Drupal\Component\Utility\SafeMarkup::checkPlain() by
    // \Drupal\Core\Utility\Error::decodeException().
    $ret['#abort'] = array(
      'success' => FALSE,
      'query' => t('%type: !message in %function (line %line of %file).', $variables),
    $context['results']['core']['update_entity_definitions'] = $ret;
    $context['results']['#abort'][] = 'update_entity_definitions';