cloud-8.x-2.0-beta1/modules/cloud_service_providers/k8s/src/Entity/K8sConfigMapViewBuilder.php
modules/cloud_service_providers/k8s/src/Entity/K8sConfigMapViewBuilder.php
<?php
namespace Drupal\k8s\Entity;
use Drupal\cloud\Entity\CloudViewBuilder;
/**
* Provides the config map view builders.
*/
class K8sConfigMapViewBuilder extends CloudViewBuilder {
/**
* {@inheritdoc}
*/
protected function getFieldsetDefs() {
return [
[
'name' => 'config_map',
'title' => t('Config Map'),
'open' => TRUE,
'fields' => [
'name',
'namespace',
'created',
'labels',
'annotations',
],
],
[
'name' => 'config_map_data',
'title' => t('Data'),
'open' => TRUE,
'fields' => [
'data',
],
],
[
'name' => 'config_map_detail',
'title' => t('Detail'),
'open' => FALSE,
'fields' => [
'detail',
],
],
[
'name' => 'others',
'title' => t('Others'),
'open' => FALSE,
'fields' => [
'cloud_context',
'uid',
],
],
];
}
}
