Skip to content

Instantly share code, notes, and snippets.

@PSF1
Forked from oskarcalvo/get_entity_configuration.php
Last active March 2, 2018 09:21
Show Gist options
  • Save PSF1/98debced486b27f86d844398e694cb69 to your computer and use it in GitHub Desktop.
Save PSF1/98debced486b27f86d844398e694cb69 to your computer and use it in GitHub Desktop.
<?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);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment