Skip to content

Commit c8bd1db

Browse files
committed
Should work
1 parent a2289dc commit c8bd1db

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

SettingsCommands.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
namespace Drush\Commands\drupal_settings;
3+
4+
use Drupal\Core\Site\Settings;
5+
use Drush\Commands\DrushCommands;
6+
7+
/**
8+
* Command file for setting-get.
9+
*/
10+
class SettingsCommands extends DrushCommands {
11+
12+
/**
13+
* Command description here.
14+
*
15+
* @command setting:get
16+
* @param $setting Get setting.
17+
* @usage setting:get hash_salt
18+
* Get setting hash_salt
19+
* @bootstrap configuration
20+
* @aliases setting-get
21+
*/
22+
public function get($setting) {
23+
print_r(Settings::get($setting));
24+
}
25+
26+
}

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "nymedia/drupal_settings",
3+
"description": "Allows you to get values for read only settings that are stored in settings.php, for drush > 9.3",
4+
"type": "drupal-drush",
5+
"require": {
6+
"drush/drush": "^9.3"
7+
},
8+
"license": "GPL-2.0+",
9+
"authors": []
10+
}

0 commit comments

Comments
 (0)