You are here

public static function FileUrlHandler::isRemote in File URL 2.0.x

Same name and namespace in other branches
  1. 8 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_url

Code

public static function isRemote(FileInterface $file) {
  return $file instanceof RemoteFile;
}