Skip to content

Instantly share code, notes, and snippets.

@oskarcalvo
Last active March 2, 2018 09:20
Show Gist options
  • Save oskarcalvo/fa1db6e2870a99ec3552baa580111597 to your computer and use it in GitHub Desktop.
Save oskarcalvo/fa1db6e2870a99ec3552baa580111597 to your computer and use it in GitHub Desktop.
<?php
$query = \Drupal::entityQuery('cub');
$result = $query->execute();
$entidades = array_values($result);
// object $entidad con todas los registros guardasdos de cub
$entidad = entity_load_multiple('cub', $entidades);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment