Commit bfabca48 authored by git's avatar git Committed by Mohamed Anis
Browse files

Issue #3286376 by Project Update Bot, Jaydev Bhatt: Automated Drupal 10 compatibility fixes

parent 9c7ff5cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: 'Bulk Update Title Node'
type: module
description: 'Bulk update titles of nodes depends on the content type selected.'
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
package: 'Content'
+1 −1
Original line number Diff line number Diff line
@@ -17,6 +17,6 @@
        "source": "https://git.drupalcode.org/project/bulk_update_title_node"
    },
    "require": {
        "drupal/core": "^8.8.0 || ^9.0"
        "drupal/core": "^8.8.0 || ^9.0 || ^10"
    }
}
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ class BulkUpdateTitlesForm extends FormBase {
    $existing_word = $form_state->getValue('bulk_update_title_node_from');
    $storage = $this->entityTypeManager->getStorage('node');
    $nodes = $storage->getQuery()
      ->accessCheck(TRUE)
      ->condition('type', $content_type)
      ->condition('title', '%' . Database::getConnection()
        ->escapeLike($existing_word) . '%', 'LIKE')
@@ -120,6 +121,7 @@ class BulkUpdateTitlesForm extends FormBase {
    $storage = $this->entityTypeManager->getStorage('node');
    // Get list of nodes which have the content type selected and match with title.
    $nodes = $storage->getQuery()
      ->accessCheck(TRUE)
      ->condition('type', $content_type)
      ->condition('title', '%' . Database::getConnection()
        ->escapeLike($from) . '%', 'LIKE')
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ class LoadTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();
    $this->user = $this->drupalCreateUser(['administer site configuration']);
    $this->drupalLogin($this->user);