public static function BlazyUtil::isValidUri in Blazy 8.2
Determines whether the URI has a valid scheme for file API operations.
Parameters
string $uri: The URI to be tested.
Return value
bool TRUE if the URI is valid.
6 calls to BlazyUtil::isValidUri()
- BlazyFilter::process in src/
Plugin/ Filter/ BlazyFilter.php - Performs the filter processing.
- BlazyLightbox::build in src/
BlazyLightbox.php - Gets media switch elements: all lightboxes, not content, nor iframe.
- BlazyManager::createPlaceholder in src/
BlazyManager.php - Build thumbnails, also to provide placeholder for blur effect.
- BlazyManager::getBlazy in src/
BlazyManager.php - Returns the enforced rich media content, or media using theme_blazy().
- BlazyManager::thumbnailAndPlaceholder in src/
BlazyManager.php - Build thumbnails, also to provide placeholder for blur effect.
File
- src/
BlazyUtil.php, line 103
Class
- BlazyUtil
- Provides Blazy utilities.
Namespace
Drupal\blazyCode
public static function isValidUri($uri) {
// Adds a check to pass the tests due to non-DI.
return !empty($uri) && Blazy::streamWrapperManager() ? Blazy::streamWrapperManager()
->isValidUri($uri) : FALSE;
}