public function RemoteLibraryTrait::hasRemoteUrl in Libraries API 8.3
Checks whether the library has a remote URL.
This check allows using the same library class for multiple libraries only some of which are available remotely.
Return value
bool TRUE if the library has a remote URL; FALSE otherwise.
See also
\Drupal\libraries\ExternalLibrary\Remote\RemoteLibraryInterface::hasRemoteUrl()
File
- src/
ExternalLibrary/ Remote/ RemoteLibraryTrait.php, line 28
Class
- RemoteLibraryTrait
- Provides a trait for remote libraries.
Namespace
Drupal\libraries\ExternalLibrary\RemoteCode
public function hasRemoteUrl() {
return !empty($this->remoteUrl);
}