Skip to main content
added 4 characters in body
Source Link
Clive
  • 168k
  • 19
  • 303
  • 337

loadMultiple() should be fine for this:

$types = \Drupal::entityManagerentityTypeManager()
  ->getStorage('node_type')
  ->loadMultiple();

loadMultiple() should be fine for this:

$types = \Drupal::entityManager()
  ->getStorage('node_type')
  ->loadMultiple();

loadMultiple() should be fine for this:

$types = \Drupal::entityTypeManager()
  ->getStorage('node_type')
  ->loadMultiple();
deleted 8 characters in body
Source Link
Clive
  • 168k
  • 19
  • 303
  • 337

Entity::loadMultiple() should be fine for this:

$types = \Drupal::entityManager()
  ->getStorage('node_type')
  ->loadMultiple();

Entity::loadMultiple() should be fine for this:

$types = \Drupal::entityManager()
  ->getStorage('node_type')
  ->loadMultiple();

loadMultiple() should be fine for this:

$types = \Drupal::entityManager()
  ->getStorage('node_type')
  ->loadMultiple();
Source Link
Clive
  • 168k
  • 19
  • 303
  • 337

Entity::loadMultiple() should be fine for this:

$types = \Drupal::entityManager()
  ->getStorage('node_type')
  ->loadMultiple();