} $options['data'
] =
$source;
} // A protocol-free URI (e.g., //cdn.com/example.js) is external.
else { $options['type'
] = 'external';
$options['data'
] =
$source;
} } // A stream wrapper URI (e.g., public://generated_js/example.js).
elseif ($this->streamWrapperManager->
isValidUri($source)) { $options['data'
] =
$source;
} // A regular URI (e.g., http://example.com/example.js) without
// 'external' explicitly specified, which may happen if, e.g.
// libraries-override is used.
elseif ($this->
isValidUri($source)) { $options['type'
] = 'external';
$options['data'
] =
$source;
} // By default, file paths are relative to the registering extension.
else {