You are here

public function PathFileEntity::getFid in Path File 8

Gets the File ID.

Return value

int The target_id of the file associated with this entity.

Overrides PathFileEntityInterface::getFid

File

src/Entity/PathFileEntity.php, line 147

Class

PathFileEntity
Defines the Path file entity entity.

Namespace

Drupal\path_file\Entity

Code

public function getFid() {
  return $this
    ->get('fid')->target_id;
}