forms/SimpleListField/SimpleListField.php
public static function addScenarioFromYml($key){
		$cfg = Config::inst()->get('SimpleListField', 'Scenarios');
		
		if( isset($cfg[$key]) ){
			if( (isset($cfg[$key]['preload']) && !$cfg[$key]['preload']) || !isset($cfg[$key]['preload']) ){
				self::$scenarios[$key] = $cfg[$key];
			}
		}
	}
public static function addScenarioFromYml($key){
		$cfg = Config::inst()->get('SimpleListField', 'Scenarios');
		
		if( isset($cfg[$key]) ){
			if( (isset($cfg[$key]['preload']) && !$cfg[$key]['preload']) || !isset($cfg[$key]['preload']) ){
				self::$scenarios[$key] = $cfg[$key];
			}
		}
	}
public static function addScenarioFromYml ( $ key ) { $ cfg = Config :: inst ( ) -> get ( 'SimpleListField' , 'Scenarios' ) ; if ( isset ( $ cfg [ $ key ] ) ) { if ( ( isset ( $ cfg [ $ key ] [ 'preload' ] ) && ! $ cfg [ $ key ] [ 'preload' ] ) || ! isset ( $ cfg [ $ key ] [ 'preload' ] ) ) { self :: $ scenarios [ $ key ] = $ cfg [ $ key ] ; } } }
Add single scenario by using yml configuration
Add single scenario by using yml configuration