Commit 6cb2cc4f authored by Project Update Bot's avatar Project Update Bot Committed by James Scott
Browse files

Issue #3304137 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent cc5628d5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase {
   *
   * @var array
   */
  public static $modules = ['user_annex'];
  protected static $modules = ['user_annex'];

  /**
   * A user with permission to administer site configuration.
@@ -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);
+2 −2
Original line number Diff line number Diff line
name: 'User annex'
type: module
description: 'Track changes to user records by recording details in a custom user_annex entity.'
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
package: User
dependencies:
  - user
  - drupal:user
configure: user_annex.settings
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ function user_annex_user_delete(UserInterface $user) {
  $user_annex = user_annex_create_user_annex($user, $values);

  // Set the label for this user_annex entity
  $now = new \Drupal\Core\Datetime\DrupalDateTime('now', date_default_timezone_get());
  $now = new DrupalDateTime('now', date_default_timezone_get());
  $user_annex->setLabel($user->id() . ': Delete - ' . $now->format('Ymd-Hi'));

  $user_annex->setModifiedByUid(\Drupal::currentUser()->id());