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\EntityCode
public function getFid() {
return $this
->get('fid')->target_id;
}