Skip to content
Snippets Groups Projects
Commit 5b7ed9dc authored by Ide Braakman's avatar Ide Braakman Committed by Yas Naoi
Browse files

Issue #3073253 by idebr, yas, nwuatmath, baldwinlouie: Fix admin/config page...

Issue #3073253 by idebr, yas, nwuatmath, baldwinlouie: Fix admin/config page error after installing AWS Cloud
parent 13876ffa
No related merge requests found
......@@ -11,9 +11,9 @@ use Drupal\Core\Render\BubbleableMetadata;
* Implements hook_token_info().
*/
function aws_cloud_token_info() {
$types = [
$types['aws_cloud_instance'] = [
'name' => t('AWS Cloud Instances'),
'description' => t('Tokens related to individual aws cloud instances.'),
'description' => t('Tokens related to individual AWS Cloud Instances.'),
'needs-data' => 'aws_cloud_instance',
];
$instance['name'] = [
......@@ -57,6 +57,11 @@ function aws_cloud_token_info() {
'description' => t('Absolute link to edit the instance'),
];
$types['aws_cloud_volume'] = [
'name' => t('AWS Cloud Volume'),
'description' => t('Tokens related to individual AWS Cloud Volumes.'),
'needs-data' => 'aws_cloud_volume',
];
$volume['name'] = [
'name' => t('Volume Name'),
'description' => t('The name of the volume entity'),
......@@ -74,6 +79,11 @@ function aws_cloud_token_info() {
'description' => t('The volume create date'),
];
$types['aws_cloud_snapshot'] = [
'name' => t('AWS Cloud Snapshot'),
'description' => t('Tokens related to individual AWS Cloud Snapshots.'),
'needs-data' => 'aws_cloud_snapshot',
];
$snapshot['name'] = [
'name' => t('Snapshot Name'),
'description' => t('The name of the snapshot entity'),
......@@ -91,16 +101,31 @@ function aws_cloud_token_info() {
'description' => t('The snapshot create date'),
];
$types['aws_cloud_instance_email'] = [
'name' => t('AWS Cloud Instance Email'),
'description' => t('Tokens related to individual AWS Cloud Instance Email.'),
'needs-data' => 'aws_cloud_instance_email',
];
$instance_email['instances'] = [
'name' => t('List of instances'),
'description' => t('List of instances to display to user.'),
];
$types['aws_cloud_volume_email'] = [
'name' => t('AWS Cloud Volume Email'),
'description' => t('Tokens related to individual AWS Cloud Volume Email.'),
'needs-data' => 'aws_cloud_volume_email',
];
$volume_email['volumes'] = [
'name' => t('List of volumes'),
'description' => t('List of volumes to display to user.'),
];
$types['aws_cloud_snapshot_email'] = [
'name' => t('AWS Cloud Snapshot Email'),
'description' => t('Tokens related to individual AWS Cloud Snapshot Email.'),
'needs-data' => 'aws_cloud_snapshot_email',
];
$snapshot_email['snapshots'] = [
'name' => t('List of snapshots'),
'description' => t('List of snapshots to display to user.'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment