cloud-8.x-2.0-beta1/modules/cloud_service_providers/k8s/src/Entity/K8sResourceQuotaViewBuilder.php

modules/cloud_service_providers/k8s/src/Entity/K8sResourceQuotaViewBuilder.php
<?php

namespace Drupal\k8s\Entity;

use Drupal\cloud\Entity\CloudViewBuilder;

/**
 * Provides the resource quota view builders.
 */
class K8sResourceQuotaViewBuilder extends CloudViewBuilder {

  /**
   * {@inheritdoc}
   */
  protected function getFieldsetDefs() {
    return [
      [
        'name' => 'resource_quota',
        'title' => t('Resource Quota'),
        'open' => TRUE,
        'fields' => [
          'name',
          'namespace',
          'created',
          'labels',
          'annotations',
        ],
      ],
      [
        'name' => 'status',
        'title' => t('Status'),
        'open' => TRUE,
        'fields' => [
          'status_hard',
          'status_used',
        ],
      ],
      [
        'name' => 'resource_quota_detail',
        'title' => t('Detail'),
        'open' => FALSE,
        'fields' => [
          'detail',
        ],
      ],
      [
        'name' => 'others',
        'title' => t('Others'),
        'open' => FALSE,
        'fields' => [
          'cloud_context',
          'uid',
        ],
      ],
    ];
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc