public function getUpgradeStatusDetails() {
    $storage = $this->getLoggerEntityStorage();
    $total_count = (int) $storage->getQuery()
      ->count()
      ->execute();

    if ($total_count === 0) {
      return [
        'resolved' => 0,
        'conflicts' => 0,
        'total' => 0,
      ];
    }

    $conflicts = (int) $storage->getQuery()
      ->condition('status', 0)
      ->count()
      ->execute();
    return [
      'resolved' => $total_count - $conflicts,
      'conflicts' => $conflicts,
      'total' => $total_count,
    ];
  }
public function getUpgradeStatusDetails() {
    $storage = $this->getLoggerEntityStorage();
    $total_count = (int) $storage->getQuery()
      ->count()
      ->execute();

    if ($total_count === 0) {
      return [
        'resolved' => 0,
        'conflicts' => 0,
        'total' => 0,
      ];
    }

    $conflicts = (int) $storage->getQuery()
      ->condition('status', 0)
      ->count()
      ->execute();
    return [
      'resolved' => $total_count - $conflicts,
      'conflicts' => $conflicts,
      'total' => $total_count,
    ];
  }
public function getUpgradeStatusDetails ( ) { $ storage = $ this -> getLoggerEntityStorage ( ) ; $ total_count = ( int ) $ storage -> getQuery ( ) -> count ( ) -> execute ( ) ; if ( $ total_count === 0 ) { return [ 'resolved' => 0 , 'conflicts' => 0 , 'total' => 0 , ] ; } $ conflicts = ( int ) $ storage -> getQuery ( ) -> condition ( 'status' , 0 ) -> count ( ) -> execute ( ) ; return [ 'resolved' => $ total_count - $ conflicts , 'conflicts' => $ conflicts , 'total' => $ total_count , ] ; }
Get upgrade status details for drupal status page.

@return array
Upgrade status details.

@see /admin/reports/status
Get upgrade status details for drupal status page .