public static function FileUrlHandler::isRemote in File URL 8
Same name and namespace in other branches
- 2.0.x src/FileUrlHandler.php \Drupal\file_url\FileUrlHandler::isRemote()
Checks if a file entity is s remote file.
Parameters
\Drupal\file\FileInterface $file: The file being checked.
Return value
bool TRUE if it's a remote file.
3 calls to FileUrlHandler::isRemote()
- FileUrlFieldItemList::delete in src/
Plugin/ Field/ FieldType/ FileUrlFieldItemList.php - Defines custom delete behavior for field values.
- FileUrlFieldItemList::deleteRevision in src/
Plugin/ Field/ FieldType/ FileUrlFieldItemList.php - Defines custom revision delete behavior for field values.
- FileUrlWidget::value in src/
Plugin/ Field/ FieldWidget/ FileUrlWidget.php - Form API callback. Retrieves the value for the file_generic field element.
File
- src/
FileUrlHandler.php, line 72
Class
- FileUrlHandler
- Helper class for turning files into public URLs and back.
Namespace
Drupal\file_urlCode
public static function isRemote(FileInterface $file) {
return $file instanceof RemoteFile;
}