public function conditions($conditions, $context) {
		$path = null;
		if (isset($conditions['design'])) {
			$paths = ['design', 'view'];
			foreach ($paths as $element) {
				if (isset($conditions[$element])) {
					$path .= "_{$element}/{$conditions[$element]}/";
					unset($conditions[$element]);
				}
			}
		}
		if (isset($conditions['id'])) {
			$path = "{$conditions['id']}";
			unset($conditions['id']);
		}
		if (isset($conditions['path'])) {
			$path = "{$conditions['path']}";
			unset($conditions['path']);
		}
		return [$path, $conditions];
	}
public function conditions($conditions, $context) {
		$path = null;
		if (isset($conditions['design'])) {
			$paths = ['design', 'view'];
			foreach ($paths as $element) {
				if (isset($conditions[$element])) {
					$path .= "_{$element}/{$conditions[$element]}/";
					unset($conditions[$element]);
				}
			}
		}
		if (isset($conditions['id'])) {
			$path = "{$conditions['id']}";
			unset($conditions['id']);
		}
		if (isset($conditions['path'])) {
			$path = "{$conditions['path']}";
			unset($conditions['path']);
		}
		return [$path, $conditions];
	}
public function conditions ( $ conditions , $ context ) { $ path = null ; if ( isset ( $ conditions [ 'design' ] ) ) { $ paths = [ 'design' , 'view' ] ; foreach ( $ paths as $ element ) { if ( isset ( $ conditions [ $ element ] ) ) { $ path .= "_{$element}/{$conditions[$element]}/" ; unset ( $ conditions [ $ element ] ) ; } } } if ( isset ( $ conditions [ 'id' ] ) ) { $ path = "{$conditions['id']}" ; unset ( $ conditions [ 'id' ] ) ; } if ( isset ( $ conditions [ 'path' ] ) ) { $ path = "{$conditions['path']}" ; unset ( $ conditions [ 'path' ] ) ; } return [ $ path , $ conditions ] ; }
Handle conditions.

@param string $conditions
@param string $context
@return array
Handle conditions .