Cài đặt Drupal 10 mới ra mắt trên Docker với Lando
Tạo dự án Drupal 10 với composer
composer create-project drupal/recommended-project:10.0.0 "drupal10"
Khoảng 2 phút
composer create-project drupal/recommended-project:10.0.0 "drupal10"
Check vào:
Đầu tiên chúng ta cần nid của các node cần xóa.
$content_type = 'content_type_name';
$nids = \Drupal::entityQuery('node')
->condition('type', $content_type)
->execute();
Đầu tiên chúng ta cần nid của các node cần xóa.
$content_type = 'content_type_name';
$nids = \Drupal::entityQuery('node')
->condition('type', $content_type)
->execute();