$fid = 36; // File Id value
$file_storage = \Drupal::entityTypeManager()->getStorage('file');
$file = $file_storage->load($fid);
How to get a file by ID in Drupal 8
Search form
Amazon Deals
Stay Connected
Most Read
Tags
Popular content
Recent content
ThirstySix helps support and grow the Drupal community with the Drupal Association.
Recent comments
$host =…