Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 486 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 486 Bytes

drush-drupal-settings

Allows you to get values for read only settings that are stored in settings.php (drush 9.3 and newer)

Installation

composer require nymedia/drupal_settings

Usage

Imagine we have a settings.local.php that includes this:

$settings['environment'] = 'development';

Now maybe we want to get ahold of this value in a bash script, or a composer script. We could just go ahead and use this package:

drush setting:get environment