Descargar tipos de contenido programáticamente

Código
 // Load entities by their property values.
      $content_for_suggestions = \Drupal::entityTypeManager()
        ->getStorage('node')
        ->loadByProperties(['type' => 'my_content_type']);

Snippet relacionados