You are here

public function RemoteFile::id in File URL 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/RemoteFile.php \Drupal\file_url\Entity\RemoteFile::id()

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides ContentEntityBase::id

File

src/Entity/RemoteFile.php, line 40

Class

RemoteFile
Defines the remote file entity class.

Namespace

Drupal\file_url\Entity

Code

public function id() {
  return $this
    ->getFileUri();
}