wisski-cloud-distillery/env/instances/barrel/wisskiutils/settings_php_get.sh
Tom Wiesing 86a4334796
Remove embed package
This commit finally removes the embed package in favor of more specific
resource packages
2022-09-11 17:00:34 +02:00

17 lines
No EOL
399 B
Bash
Executable file

#!/bin/bash
# settings_php_get.sh name
# Gets the 'settings_php_get.php' setting 'name' as json-encoded value, or null when it does not exist.
NAME=$1
if [ -z "$NAME" ]; then
echo "Usage: get_settings_setting.sh NAME"
exit 1
fi;
echo "$NAME" | drush php:eval '
use \Drupal\Core\Site\Settings;
$name=trim(file_get_contents("php://stdin"));
echo json_encode(Settings::get($name));
';