public static function ConvertNodes::getNids in Convert Nodes 8
1 call to ConvertNodes::getNids()
- ConvertNodesForm::convertNodes in src/
Form/ ConvertNodesForm.php
File
- src/
ConvertNodes.php, line 168
Class
- ConvertNodes
- ConvertNodes.
Namespace
Drupal\convert_nodesCode
public static function getNids($from_type) {
// Get the node IDs to update.
$query = \Drupal::service('entity_type.manager')
->getStorage('node')
->getQuery();
//$query = \Drupal::service('entity.query')->get('node');
$query
->condition('type', $from_type);
$nids = $query
->execute();
return array_values($nids);
}