Drupal 8 - Node nach Title suchen / laden

Submitted by Gast (nicht überprüft) on Do, 04/05/2018 - 18:38

<?php

$nodes = \Drupal::entityTypeManager()
  ->getStorage('node')
  ->loadByProperties(['title' => 'Title von Node, den ich suche']);

foreach ( $nodes as $node ) {
  ...
}

...

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.