public function getDashboardItems() {
    $instances = [];
    $sortedDefinitions = [];
    $definitions = $this->getDefinitions();

    foreach ($definitions as $id => $definition) {
      $sortedDefinitions[$definition['group']][$id] = $definition;
    }

    foreach ($sortedDefinitions as &$localSortedDefinitions) {
      usort($localSortedDefinitions, [$this, 'sortPlugins']);
    }

    foreach ($sortedDefinitions as $group => $localDefinitions) {
      foreach ($localDefinitions as $definition) {
        $id = $definition['id'];
        $instances[$group][$id] = $this->createInstance($id)->render();
      }
    }

    return $instances;
  }