Answers for "drupal 8 get node based on field value"

0

drupal 8 load node by field value

$node = \Drupal::entityTypeManager()
  ->getStorage('node')
  ->loadByProperties([
    'title' => $title
  ]);
Posted by: Guest on September-13-2020
0

drupal 9 get field value

$node->get('field_name')->getValue();
Posted by: Guest on June-30-2021

Code answers related to "drupal 8 get node based on field value"

Browse Popular Code Answers by Language