// Load file object
$file = File::load($fid);
// Get uri (public://foo/bar/baz.png)
$uri = $file->getFileUri();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = \Drupal::entityQuery('cub'); | |
$result = $query->execute(); | |
$entidadesIDs = array_values($result); | |
// object $entidad con todas los registros guardasdos de cub | |
$entidades = entity_load_multiple('cub', $entidadesIDs); | |
?> | |