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