/** * Overloads the {@link BedrockNode::get()} method to pipe failures through {@link SilverSmithDefaults} * * @param string The path to the setting * @return BedrockNode */ public function get($setting) { $result = parent::get($setting); if (!$result) { return SilverSmithDefaults::get($setting); } return $result; }
/** * Get a setting from the project YAML * * @param string A dot-separated path to the setting */ public static function get($setting) { return self::$settings_list->get($setting); }