diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 71b5b0d00a..99af6952ca 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -1,7 +1,7 @@ name: nysenate type: drupal9 docroot: web -php_version: "8.0" +php_version: "8.1" webserver_type: nginx-fpm router_http_port: "80" router_https_port: "443" @@ -82,7 +82,7 @@ web_environment: [] # Please take care with this because it can cause great confusion. # upload_dir: custom/upload/dir -# would set the destination path for ddev import-files to /custom/upload/dir +# would set the destination path for ddev import-files to /custom/upload/dir # working_dir: # web: /var/www/html diff --git a/composer.json b/composer.json index 59c7fb0b6d..0a2c3333b9 100644 --- a/composer.json +++ b/composer.json @@ -38,6 +38,7 @@ "drupal/calendar_link": "^3.0", "drupal/charts": "^5.0", "drupal/clamav": "^2.0", + "drupal/classy": "^1.0", "drupal/comments_ban": "^1.0", "drupal/conditional_fields": "^4.0@alpha", "drupal/config_ignore": "^2.3", @@ -116,6 +117,7 @@ "drupal/search_api_solr": "^4.2", "drupal/seckit": "^2.0", "drupal/semanticviews": "^2.3", + "drupal/seven": "^1.0", "drupal/simple_sitemap": "^4.1", "drupal/site_verify": "1.x-dev", "drupal/stage_file_proxy": "^2.0", @@ -129,6 +131,7 @@ "drupal/twitter_api_block": "^4.0", "drupal/twitter_block": "^3.0@alpha", "drupal/ultimate_cron": "^2.0@alpha", + "drupal/upgrade_status": "^4.0", "drupal/video_embed_field": "~2.0", "drupal/video_embed_field_migrate": "1.0.x-dev", "drupal/views_autocomplete_filters": "^1.3", @@ -188,7 +191,7 @@ "discard-changes": true, "sort-packages": true, "platform": { - "php": "8.0" + "php": "8.1" }, "allow-plugins": { "composer/installers": true, diff --git a/composer.lock b/composer.lock index 6ca0c3a475..980cef0ad6 100644 --- a/composer.lock +++ b/composer.lock @@ -2617,6 +2617,60 @@ "source": "https://git.drupalcode.org/project/clamav" } }, + { + "name": "drupal/classy", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/classy.git", + "reference": "1.0.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/classy-1.0.2.zip", + "reference": "1.0.2", + "shasum": "c2f4fbfd9ae7d4e0cbd952d96247d00a0759da06" + }, + "require": { + "drupal/core": "^9 || ^10", + "drupal/stable": "^2.0.0" + }, + "type": "drupal-theme", + "extra": { + "drupal": { + "version": "1.0.2", + "datestamp": "1663949784", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "bnjmnm", + "homepage": "https://www.drupal.org/user/2369194" + }, + { + "name": "davidhernandez", + "homepage": "https://www.drupal.org/user/274559" + }, + { + "name": "lauriii", + "homepage": "https://www.drupal.org/user/1078742" + } + ], + "description": "The Classy base theme from Drupal 8/9 moved to contrib", + "homepage": "https://drupal.org/project/classy", + "support": { + "source": "https://git.drupalcode.org/project/classy", + "issues": "https://drupal.org/project/issues/classy" + } + }, { "name": "drupal/comments_ban", "version": "1.0.1", @@ -10347,6 +10401,66 @@ "source": "https://git.drupalcode.org/project/session_limit" } }, + { + "name": "drupal/seven", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/seven.git", + "reference": "1.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/seven-1.0.0.zip", + "reference": "1.0.0", + "shasum": "88e86926388c7e6cf66b0502d13a0470ce2399cd" + }, + "require": { + "drupal/core": "^9 || ^10" + }, + "type": "drupal-theme", + "extra": { + "drupal": { + "version": "1.0.0", + "datestamp": "1683652106", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "bnjmnm", + "homepage": "https://www.drupal.org/user/2369194" + }, + { + "name": "lauriii", + "homepage": "https://www.drupal.org/user/1078742" + }, + { + "name": "mcrittenden", + "homepage": "https://www.drupal.org/user/420631" + }, + { + "name": "mrfelton", + "homepage": "https://www.drupal.org/user/305669" + }, + { + "name": "TravisCarden", + "homepage": "https://www.drupal.org/user/236758" + } + ], + "description": "The Seven theme from Drupal 8/9 moved to contrib", + "homepage": "https://www.drupal.org/project/seven", + "support": { + "source": "https://git.drupalcode.org/project/seven" + } + }, { "name": "drupal/simple_sitemap", "version": "4.1.6", @@ -10580,6 +10694,58 @@ "source": "https://git.drupalcode.org/project/sophron" } }, + { + "name": "drupal/stable", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/stable.git", + "reference": "2.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/stable-2.0.0.zip", + "reference": "2.0.0", + "shasum": "1d1ba799280bd6b9a3c46a158e6026663e080f3f" + }, + "require": { + "drupal/core": "^9 || ^10" + }, + "type": "drupal-theme", + "extra": { + "drupal": { + "version": "2.0.0", + "datestamp": "1663102967", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "bnjmnm", + "homepage": "https://www.drupal.org/user/2369194" + }, + { + "name": "Cottser", + "homepage": "https://www.drupal.org/user/1167326" + }, + { + "name": "lauriii", + "homepage": "https://www.drupal.org/user/1078742" + } + ], + "description": "A base theme using Drupal 8.0.0's core markup and CSS.", + "homepage": "https://www.drupal.org/project/stable", + "support": { + "source": "https://git.drupalcode.org/project/stable" + } + }, { "name": "drupal/stage_file_proxy", "version": "2.1.1", @@ -11415,6 +11581,81 @@ "source": "https://git.drupalcode.org/project/ultimate_cron" } }, + { + "name": "drupal/upgrade_status", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/upgrade_status.git", + "reference": "4.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/upgrade_status-4.0.0.zip", + "reference": "4.0.0", + "shasum": "013afdb46a03c9db0119cb1ce60ca49631d64368" + }, + "require": { + "drupal/core": "^9 || ^10", + "mathieuviossat/arraytotexttable": "~1.0.0", + "mglaman/phpstan-drupal": "^1.0.0", + "nikic/php-parser": "^4.0.0", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "symfony/process": "^3.4|^4.0|^5.0|^6.0", + "webflo/drupal-finder": "^1.2" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "4.0.0", + "datestamp": "1678815090", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "drush": { + "services": { + "drush.services.yml": "^9 || ^10" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "colan", + "homepage": "https://www.drupal.org/user/58704" + }, + { + "name": "Gábor Hojtsy", + "homepage": "https://www.drupal.org/user/4166" + }, + { + "name": "herczogzoltan", + "homepage": "https://www.drupal.org/user/3528391" + }, + { + "name": "sun", + "homepage": "https://www.drupal.org/user/54136" + }, + { + "name": "webchick", + "homepage": "https://www.drupal.org/user/24967" + }, + { + "name": "xjm", + "homepage": "https://www.drupal.org/user/65776" + } + ], + "description": "Review Drupal major upgrade readiness of the environment and components of the site.", + "homepage": "http://drupal.org/project/upgrade_status", + "support": { + "source": "https://git.drupalcode.org/project/upgrade_status" + } + }, { "name": "drupal/username_enumeration_prevention", "version": "1.3.0", @@ -14366,6 +14607,66 @@ ], "time": "2022-12-03T18:48:01+00:00" }, + { + "name": "laminas/laminas-text", + "version": "2.10.0", + "source": { + "type": "git", + "url": "https://github.com/laminas/laminas-text.git", + "reference": "40f7acdb284d41553d32db811e704d6e15e415b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laminas/laminas-text/zipball/40f7acdb284d41553d32db811e704d6e15e415b4", + "reference": "40f7acdb284d41553d32db811e704d6e15e415b4", + "shasum": "" + }, + "require": { + "laminas/laminas-servicemanager": "^3.19.0", + "laminas/laminas-stdlib": "^3.7.1", + "php": "~8.0.0 || ~8.1.0 || ~8.2.0" + }, + "conflict": { + "zendframework/zend-text": "*" + }, + "require-dev": { + "laminas/laminas-coding-standard": "~2.4.0", + "phpunit/phpunit": "^9.5", + "psalm/plugin-phpunit": "^0.18.4", + "vimeo/psalm": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Laminas\\Text\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Create FIGlets and text-based tables", + "homepage": "https://laminas.dev", + "keywords": [ + "laminas", + "text" + ], + "support": { + "chat": "https://laminas.dev/chat", + "docs": "https://docs.laminas.dev/laminas-text/", + "forum": "https://discourse.laminas.dev", + "issues": "https://github.com/laminas/laminas-text/issues", + "rss": "https://github.com/laminas/laminas-text/releases.atom", + "source": "https://github.com/laminas/laminas-text" + }, + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2022-12-11T15:36:27+00:00" + }, { "name": "league/container", "version": "4.2.0", @@ -14776,26 +15077,77 @@ "time": "2022-08-18T16:18:26+00:00" }, { - "name": "mediacurrent/mis_profile", - "version": "2.4", + "name": "mathieuviossat/arraytotexttable", + "version": "v1.0.10", "source": { "type": "git", - "url": "https://bitbucket.org/mediacurrent/mis_profile.git", - "reference": "270f3445ee76da63c9c03e94c99623541a766c45" + "url": "https://github.com/viossat/arraytotexttable.git", + "reference": "dddaf50d2c1d655b985e63337c421b298f7854be" }, "dist": { "type": "zip", - "url": "https://bitbucket.org/mediacurrent/mis_profile/get/270f3445ee76da63c9c03e94c99623541a766c45.zip", - "reference": "270f3445ee76da63c9c03e94c99623541a766c45", + "url": "https://api.github.com/repos/viossat/arraytotexttable/zipball/dddaf50d2c1d655b985e63337c421b298f7854be", + "reference": "dddaf50d2c1d655b985e63337c421b298f7854be", "shasum": "" }, - "type": "drupal-profile", + "require": { + "laminas/laminas-text": "^2.10", + "php": "~8.0.0 || ~8.1.0 || ~8.2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "MathieuViossat\\Util\\": "src/" + } + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0-or-later" + "MIT" + ], + "authors": [ + { + "name": "Mathieu Viossat", + "email": "mathieu@viossat.fr", + "homepage": "https://viossat.fr" + } + ], + "description": "Display arrays in terminal", + "homepage": "https://github.com/viossat/arraytotexttable", + "keywords": [ + "array", + "ascii", + "table", + "terminal", + "text", + "unicode" ], - "description": "MC example profile template", - "homepage": "https://bitbucket.org/mediacurrent/mis_profile", + "support": { + "issues": "https://github.com/viossat/arraytotexttable/issues", + "source": "https://github.com/viossat/arraytotexttable/tree/v1.0.10" + }, + "time": "2023-09-21T16:42:23+00:00" + }, + { + "name": "mediacurrent/mis_profile", + "version": "2.4", + "source": { + "type": "git", + "url": "https://bitbucket.org/mediacurrent/mis_profile.git", + "reference": "270f3445ee76da63c9c03e94c99623541a766c45" + }, + "dist": { + "type": "zip", + "url": "https://bitbucket.org/mediacurrent/mis_profile/get/270f3445ee76da63c9c03e94c99623541a766c45.zip", + "reference": "270f3445ee76da63c9c03e94c99623541a766c45", + "shasum": "" + }, + "type": "drupal-profile", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-or-later" + ], + "description": "MC example profile template", + "homepage": "https://bitbucket.org/mediacurrent/mis_profile", "support": { "issues": "https://bitbucket.org/mediacurrent/mis_profile/issues", "source": "https://bitbucket.org/mediacurrent/mis_profile/src/270f3445ee76da63c9c03e94c99623541a766c45/?at=2.4" @@ -15025,6 +15377,110 @@ }, "time": "2021-03-19T15:37:36+00:00" }, + { + "name": "mglaman/phpstan-drupal", + "version": "1.1.37", + "source": { + "type": "git", + "url": "https://github.com/mglaman/phpstan-drupal.git", + "reference": "a40fb539b55d47aeabc308d99b3088a40abcff30" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/a40fb539b55d47aeabc308d99b3088a40abcff30", + "reference": "a40fb539b55d47aeabc308d99b3088a40abcff30", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^1.10.1", + "symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0", + "symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0", + "webflo/drupal-finder": "^1.2" + }, + "require-dev": { + "behat/mink": "^1.8", + "composer/installers": "^1.9", + "drupal/core-recommended": "^8.8@alpha || ^9.0", + "drush/drush": "^9.6 || ^10.0 || ^11", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9", + "slevomat/coding-standard": "^7.1", + "squizlabs/php_codesniffer": "^3.3", + "symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0" + }, + "suggest": { + "jangregor/phpstan-prophecy": "Provides a prophecy/prophecy extension for phpstan/phpstan.", + "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core.", + "phpstan/phpstan-phpunit": "PHPUnit extensions and rules for PHPStan." + }, + "type": "phpstan-extension", + "extra": { + "branch-alias": { + "dev-main": "1.0-dev" + }, + "installer-paths": { + "tests/fixtures/drupal/core": [ + "type:drupal-core" + ], + "tests/fixtures/drupal/libraries/{$name}": [ + "type:drupal-library" + ], + "tests/fixtures/drupal/modules/contrib/{$name}": [ + "type:drupal-module" + ], + "tests/fixtures/drupal/profiles/contrib/{$name}": [ + "type:drupal-profile" + ], + "tests/fixtures/drupal/themes/contrib/{$name}": [ + "type:drupal-theme" + ] + }, + "phpstan": { + "includes": [ + "extension.neon", + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "mglaman\\PHPStanDrupal\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Glaman", + "email": "nmd.matt@gmail.com" + } + ], + "description": "Drupal extension and rules for PHPStan", + "support": { + "issues": "https://github.com/mglaman/phpstan-drupal/issues", + "source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.37" + }, + "funding": [ + { + "url": "https://github.com/mglaman", + "type": "github" + }, + { + "url": "https://opencollective.com/phpstan-drupal", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/mglaman/phpstan-drupal", + "type": "tidelift" + } + ], + "time": "2023-07-25T14:24:06+00:00" + }, { "name": "mkalkbrenner/php-htmldiff-advanced", "version": "0.0.8", @@ -15999,6 +16455,116 @@ }, "time": "2020-07-07T09:29:14+00:00" }, + { + "name": "phpstan/phpstan", + "version": "1.10.30", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "2910afdd3fe33e5afd71c09f3fb0d0845b48c410" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/2910afdd3fe33e5afd71c09f3fb0d0845b48c410", + "reference": "2910afdd3fe33e5afd71c09f3fb0d0845b48c410", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2023-08-22T13:48:25+00:00" + }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.10.3" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-php-parser": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^9.5" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", + "support": { + "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.1.4" + }, + "time": "2023-08-05T09:02:04+00:00" + }, { "name": "politsin/jquery-ui-touch-punch", "version": "1.0", @@ -22595,110 +23161,6 @@ ], "time": "2022-04-29T02:26:28+00:00" }, - { - "name": "mglaman/phpstan-drupal", - "version": "1.1.37", - "source": { - "type": "git", - "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "a40fb539b55d47aeabc308d99b3088a40abcff30" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/a40fb539b55d47aeabc308d99b3088a40abcff30", - "reference": "a40fb539b55d47aeabc308d99b3088a40abcff30", - "shasum": "" - }, - "require": { - "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^1.10.1", - "symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0", - "symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0", - "webflo/drupal-finder": "^1.2" - }, - "require-dev": { - "behat/mink": "^1.8", - "composer/installers": "^1.9", - "drupal/core-recommended": "^8.8@alpha || ^9.0", - "drush/drush": "^9.6 || ^10.0 || ^11", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9", - "slevomat/coding-standard": "^7.1", - "squizlabs/php_codesniffer": "^3.3", - "symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0" - }, - "suggest": { - "jangregor/phpstan-prophecy": "Provides a prophecy/prophecy extension for phpstan/phpstan.", - "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core.", - "phpstan/phpstan-phpunit": "PHPUnit extensions and rules for PHPStan." - }, - "type": "phpstan-extension", - "extra": { - "branch-alias": { - "dev-main": "1.0-dev" - }, - "installer-paths": { - "tests/fixtures/drupal/core": [ - "type:drupal-core" - ], - "tests/fixtures/drupal/libraries/{$name}": [ - "type:drupal-library" - ], - "tests/fixtures/drupal/modules/contrib/{$name}": [ - "type:drupal-module" - ], - "tests/fixtures/drupal/profiles/contrib/{$name}": [ - "type:drupal-profile" - ], - "tests/fixtures/drupal/themes/contrib/{$name}": [ - "type:drupal-theme" - ] - }, - "phpstan": { - "includes": [ - "extension.neon", - "rules.neon" - ] - } - }, - "autoload": { - "psr-4": { - "mglaman\\PHPStanDrupal\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Matt Glaman", - "email": "nmd.matt@gmail.com" - } - ], - "description": "Drupal extension and rules for PHPStan", - "support": { - "issues": "https://github.com/mglaman/phpstan-drupal/issues", - "source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.37" - }, - "funding": [ - { - "url": "https://github.com/mglaman", - "type": "github" - }, - { - "url": "https://opencollective.com/phpstan-drupal", - "type": "open_collective" - }, - { - "url": "https://tidelift.com/funding/github/packagist/mglaman/phpstan-drupal", - "type": "tidelift" - } - ], - "time": "2023-07-25T14:24:06+00:00" - }, { "name": "mikey179/vfsstream", "version": "v1.6.11", @@ -23382,116 +23844,6 @@ }, "time": "2023-09-26T12:28:12+00:00" }, - { - "name": "phpstan/phpstan", - "version": "1.10.30", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "2910afdd3fe33e5afd71c09f3fb0d0845b48c410" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/2910afdd3fe33e5afd71c09f3fb0d0845b48c410", - "reference": "2910afdd3fe33e5afd71c09f3fb0d0845b48c410", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0" - }, - "conflict": { - "phpstan/phpstan-shim": "*" - }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" - ], - "support": { - "docs": "https://phpstan.org/user-guide/getting-started", - "forum": "https://github.com/phpstan/phpstan/discussions", - "issues": "https://github.com/phpstan/phpstan/issues", - "security": "https://github.com/phpstan/phpstan/security/policy", - "source": "https://github.com/phpstan/phpstan-src" - }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" - } - ], - "time": "2023-08-22T13:48:25+00:00" - }, - { - "name": "phpstan/phpstan-deprecation-rules", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", - "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", - "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10.3" - }, - "require-dev": { - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-php-parser": "^1.1", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" - }, - "type": "phpstan-extension", - "extra": { - "phpstan": { - "includes": [ - "rules.neon" - ] - } - }, - "autoload": { - "psr-4": { - "PHPStan\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", - "support": { - "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", - "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.1.4" - }, - "time": "2023-08-05T09:02:04+00:00" - }, { "name": "phpunit/php-code-coverage", "version": "9.2.29", @@ -26045,7 +26397,7 @@ }, "platform-dev": [], "platform-overrides": { - "php": "8.0" + "php": "8.1" }, "plugin-api-version": "2.3.0" } diff --git a/config/sync/block.block.bartik_breadcrumbs.yml b/config/sync/block.block.bartik_breadcrumbs.yml deleted file mode 100644 index 37feb2dd2b..0000000000 --- a/config/sync/block.block.bartik_breadcrumbs.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 38deffb5-1bf7-4654-986e-d0add76de7b5 -langcode: en -status: false -dependencies: - module: - - system - theme: - - bartik -_core: - default_config_hash: LNObvOw3oGi7_PyUy_OEMevpOSRNIeHpTuVhg2hxmmo -id: bartik_breadcrumbs -theme: bartik -region: header -weight: -4 -provider: null -plugin: system_breadcrumb_block -settings: - id: system_breadcrumb_block - label: Breadcrumbs - label_display: '0' - provider: system -visibility: { } diff --git a/config/sync/block.block.bartik_content.yml b/config/sync/block.block.bartik_content.yml deleted file mode 100644 index 3bf11bfb77..0000000000 --- a/config/sync/block.block.bartik_content.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: f1b14c5c-43b8-4132-8584-a992911f87ff -langcode: en -status: true -dependencies: - module: - - system - theme: - - bartik -_core: - default_config_hash: fPfVZlmAlngHwidOJZXI3SSaC9kwQPpNdkrle8ZebZ0 -id: bartik_content -theme: bartik -region: content -weight: 0 -provider: null -plugin: system_main_block -settings: - id: system_main_block - label: 'Main page content' - label_display: '0' - provider: system -visibility: { } diff --git a/config/sync/block.block.bartik_help.yml b/config/sync/block.block.bartik_help.yml deleted file mode 100644 index d86b548ef5..0000000000 --- a/config/sync/block.block.bartik_help.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 22eb9c02-1216-4957-a335-86f42a809af2 -langcode: en -status: true -dependencies: - module: - - help - theme: - - bartik -_core: - default_config_hash: MnIacXBQFBE9-BxFJKw8pEVJqlpd-CANGxkdzrZTCw0 -id: bartik_help -theme: bartik -region: content -weight: -30 -provider: null -plugin: help_block -settings: - id: help_block - label: Help - label_display: '0' - provider: help -visibility: { } diff --git a/config/sync/block.block.bartik_local_actions.yml b/config/sync/block.block.bartik_local_actions.yml deleted file mode 100644 index 8e2d680223..0000000000 --- a/config/sync/block.block.bartik_local_actions.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: 15557ed8-be9b-43f1-ada4-980589c106c3 -langcode: en -status: true -dependencies: - theme: - - bartik -_core: - default_config_hash: oRFcEXrb9gs842to7NMhVUoPl2YxS611xsCk9yoWyng -id: bartik_local_actions -theme: bartik -region: content -weight: -20 -provider: null -plugin: local_actions_block -settings: - id: local_actions_block - label: 'Primary admin actions' - label_display: '0' - provider: core -visibility: { } diff --git a/config/sync/block.block.bartik_local_tasks.yml b/config/sync/block.block.bartik_local_tasks.yml deleted file mode 100644 index caca5a3086..0000000000 --- a/config/sync/block.block.bartik_local_tasks.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 10cc8e47-3ad0-49b2-a229-0d7d95e7f41b -langcode: en -status: true -dependencies: - theme: - - bartik -_core: - default_config_hash: Fl2rxN2Ssf7ylUXSKCYB6VK1aw4OCuYqv4ldVN3YXY4 -id: bartik_local_tasks -theme: bartik -region: content -weight: -40 -provider: null -plugin: local_tasks_block -settings: - id: local_tasks_block - label: Tabs - label_display: '0' - provider: core - primary: true - secondary: true -visibility: { } diff --git a/config/sync/block.block.bartik_main_menu.yml b/config/sync/block.block.bartik_main_menu.yml deleted file mode 100644 index 55886061ac..0000000000 --- a/config/sync/block.block.bartik_main_menu.yml +++ /dev/null @@ -1,27 +0,0 @@ -uuid: 62566bd4-868d-4137-b2eb-afaeb94008a2 -langcode: en -status: false -dependencies: - config: - - system.menu.main - module: - - system - theme: - - bartik -_core: - default_config_hash: TjYZcQXz3v7GAB5ZlW219jI2_J4bwxhrDrjFYA9_dBQ -id: bartik_main_menu -theme: bartik -region: header -weight: -4 -provider: null -plugin: 'system_menu_block:main' -settings: - id: 'system_menu_block:main' - label: 'Main navigation' - label_display: '0' - provider: system - level: 1 - depth: 1 - expand_all_items: false -visibility: { } diff --git a/config/sync/block.block.bartik_messages.yml b/config/sync/block.block.bartik_messages.yml deleted file mode 100644 index 2764ff7ce1..0000000000 --- a/config/sync/block.block.bartik_messages.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 7b4bb9fc-33ed-4bc4-a8c0-420d969035a2 -langcode: en -status: false -dependencies: - module: - - system - theme: - - bartik -_core: - default_config_hash: 36vxkrdtNuXmvOajMXKp_P3PckJ5Np7uodPahBGPkxg -id: bartik_messages -theme: bartik -region: header -weight: -4 -provider: null -plugin: system_messages_block -settings: - id: system_messages_block - label: 'Status messages' - label_display: '0' - provider: system -visibility: { } diff --git a/config/sync/block.block.bartik_page_title.yml b/config/sync/block.block.bartik_page_title.yml deleted file mode 100644 index 5d0f312618..0000000000 --- a/config/sync/block.block.bartik_page_title.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: e3bf7145-4dbf-42d3-84b9-ef171cf40620 -langcode: en -status: true -dependencies: - theme: - - bartik -_core: - default_config_hash: XivP_gUyVLb0D5Qa70V9eA-k447n97XWbMw4oDOdWqI -id: bartik_page_title -theme: bartik -region: content -weight: -50 -provider: null -plugin: page_title_block -settings: - id: page_title_block - label: 'Page title' - label_display: '0' - provider: core -visibility: { } diff --git a/config/sync/block.block.privatemessageactions.yml b/config/sync/block.block.privatemessageactions.yml deleted file mode 100644 index 2c6a57c4c5..0000000000 --- a/config/sync/block.block.privatemessageactions.yml +++ /dev/null @@ -1,31 +0,0 @@ -uuid: 79b4d67f-d9f7-4768-9482-1921e7b96b4c -langcode: en -status: true -dependencies: - module: - - private_message - - system - theme: - - bartik - enforced: - module: - - private_message -_core: - default_config_hash: fz76WJgYBiPULFUH-fBqOKqOKA-viCQSwO6ri6zQgbo -id: privatemessageactions -theme: bartik -region: sidebar_first -weight: 0 -provider: null -plugin: private_message_actions_block -settings: - id: private_message_actions_block - label: Actions - label_display: visible - provider: private_message -visibility: - request_path: - id: request_path - negate: false - context_mapping: { } - pages: "/private-messages\r\n/private-messages/*\r\n/private-message/create" diff --git a/config/sync/block.block.privatemessageinbox.yml b/config/sync/block.block.privatemessageinbox.yml deleted file mode 100644 index be929b1e73..0000000000 --- a/config/sync/block.block.privatemessageinbox.yml +++ /dev/null @@ -1,31 +0,0 @@ -uuid: 5d5376c1-a6ba-4578-bad3-f9832c0b4f8c -langcode: en -status: true -dependencies: - module: - - private_message - - system - theme: - - bartik -_core: - default_config_hash: oeVdsKvEgra90tR-Eu6GVd0SuFtF8U9Nl09IKbNequg -id: privatemessageinbox -theme: bartik -region: sidebar_first -weight: 0 -provider: null -plugin: private_message_inbox_block -settings: - id: private_message_inbox_block - label: 'Private Message Inbox' - label_display: visible - provider: private_message - thread_count: 5 - ajax_load_count: 5 - ajax_refresh_rate: 15 -visibility: - request_path: - id: request_path - negate: false - context_mapping: { } - pages: "/private-messages\r\n/private-messages/*" diff --git a/config/sync/block.block.privatemessagenotification.yml b/config/sync/block.block.privatemessagenotification.yml deleted file mode 100644 index dc22d15570..0000000000 --- a/config/sync/block.block.privatemessagenotification.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: 8792bdbc-66f8-4b25-be29-9bb535591010 -langcode: en -status: true -dependencies: - module: - - private_message - theme: - - bartik -_core: - default_config_hash: 5_HCtkU8sOicC0RgrGdoSPaJ4-OnvzdDgyhOK75rUvQ -id: privatemessagenotification -theme: bartik -region: header -weight: -3 -provider: null -plugin: private_message_notification_block -settings: - id: private_message_notification_block - label: 'Private Message Notification' - label_display: '0' - provider: private_message - ajax_refresh_rate: 15 -visibility: { } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 0164e88419..8b3ea3727b 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -22,7 +22,6 @@ module: captcha: 0 charts: 0 ckeditor: 0 - color: 0 comment: 0 components: 0 conditional_fields: 0 @@ -213,6 +212,7 @@ module: twitter_block: 0 ultimate_cron: 0 update: 0 + upgrade_status: 0 user: 0 video_embed_field: 0 video_embed_media: 0 @@ -246,7 +246,6 @@ module: paragraphs: 11 nysenate: 1000 theme: - bartik: 0 seven: 0 stable: 0 classy: 0 diff --git a/config/sync/upgrade_status.settings.yml b/config/sync/upgrade_status.settings.yml new file mode 100644 index 0000000000..c5e874415b --- /dev/null +++ b/config/sync/upgrade_status.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: BqkUHiXXGvu2L7NR_nblxtP6f03MdD16XSMWwVM0QEc +paths_per_scan: 30 diff --git a/pantheon.upstream.yml b/pantheon.upstream.yml index ff4da25f2f..100e06c981 100644 --- a/pantheon.upstream.yml +++ b/pantheon.upstream.yml @@ -2,7 +2,7 @@ api_version: 1 web_docroot: true # See https://pantheon.io/docs/pantheon-yml/#enforce-https--hsts for valid values. enforce_https: transitional -php_version: 7.4 +php_version: 8.1 database: version: 10.4 drush_version: 10 diff --git a/pantheon.yml b/pantheon.yml index 24b334d6d6..b48bf9e6c4 100644 --- a/pantheon.yml +++ b/pantheon.yml @@ -4,7 +4,7 @@ api_version: 1 web_docroot: true # Drupal 9 requirements. -php_version: 8.0 +php_version: 8.1 drush_version: 10 build_step: false database: diff --git a/web/modules/custom/location_migration/location_migration.info.yml b/web/modules/custom/location_migration/location_migration.info.yml index 303988693b..f8d1bac533 100644 --- a/web/modules/custom/location_migration/location_migration.info.yml +++ b/web/modules/custom/location_migration/location_migration.info.yml @@ -1,7 +1,7 @@ name: Location Migration type: module description: Migration plugins for migrating Drupal 7 location data from Drupal 7 to Drupal 9 -core_version_requirement: ^8.8 || ^9 +core_version_requirement: ^9 || ^10 package: Migration dependencies: - address:address diff --git a/web/modules/custom/nys_access_permissions/nys_access_permissions.info.yml b/web/modules/custom/nys_access_permissions/nys_access_permissions.info.yml index 662dc0738e..5a197e9217 100644 --- a/web/modules/custom/nys_access_permissions/nys_access_permissions.info.yml +++ b/web/modules/custom/nys_access_permissions/nys_access_permissions.info.yml @@ -2,4 +2,4 @@ name: NYS Access Permissions type: module description: Custom Permissions for users and roles on the nysenate.gov site package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_accumulator/nys_accumulator.info.yml b/web/modules/custom/nys_accumulator/nys_accumulator.info.yml index bda84c70dc..8a57e5919b 100644 --- a/web/modules/custom/nys_accumulator/nys_accumulator.info.yml +++ b/web/modules/custom/nys_accumulator/nys_accumulator.info.yml @@ -1,8 +1,7 @@ name: NYS Accumulator type: module description: Records interactive events for integration with Bluebird. -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: NYS Senate dependencies: diff --git a/web/modules/custom/nys_bill_notifications/nys_bill_notifications.info.yml b/web/modules/custom/nys_bill_notifications/nys_bill_notifications.info.yml index 892cecdb69..a0dae3af59 100644 --- a/web/modules/custom/nys_bill_notifications/nys_bill_notifications.info.yml +++ b/web/modules/custom/nys_bill_notifications/nys_bill_notifications.info.yml @@ -2,8 +2,7 @@ name: NYS Bill Notifications type: module description: Handles subscriptions to single bills and bill lineages package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_subscriptions:nys_subscriptions - nys_sendgrid:nys_sendgrid diff --git a/web/modules/custom/nys_bill_vote/nys_bill_vote.info.yml b/web/modules/custom/nys_bill_vote/nys_bill_vote.info.yml index c9f884688e..b16f9ba777 100644 --- a/web/modules/custom/nys_bill_vote/nys_bill_vote.info.yml +++ b/web/modules/custom/nys_bill_vote/nys_bill_vote.info.yml @@ -2,7 +2,7 @@ name: NYS Bill Vote type: module description: Allows visitors to vote aye or nay on bills ((based on is_useful contrib module) package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - flag:flag - nys_bills:nys_bills diff --git a/web/modules/custom/nys_bills/nys_bills.info.yml b/web/modules/custom/nys_bills/nys_bills.info.yml index 0238a8b1b0..9ca002b869 100644 --- a/web/modules/custom/nys_bills/nys_bills.info.yml +++ b/web/modules/custom/nys_bills/nys_bills.info.yml @@ -2,7 +2,7 @@ name: NYS Bills type: module description: Custom bills functionality for New York Senate. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_senators:nys_senators diff --git a/web/modules/custom/nys_bills/src/BillsHelper.php b/web/modules/custom/nys_bills/src/BillsHelper.php index 3d9c08bce3..e225304409 100644 --- a/web/modules/custom/nys_bills/src/BillsHelper.php +++ b/web/modules/custom/nys_bills/src/BillsHelper.php @@ -185,6 +185,7 @@ public function loadBillVersions(string $base_print, int $session): array { try { $storage = $this->getStorage(); $results = $storage->getQuery() + ->accessCheck(FALSE) ->condition('type', ['bill', 'resolution'], 'IN') ->condition('field_ol_base_print_no', $base_print) ->condition('field_ol_session', $session) @@ -616,6 +617,7 @@ public function getBillMetadata($nids) { public function loadBillsFromTid($tid) { $query = $this->entityTypeManager->getStorage('node') ->getQuery() + ->accessCheck(FALSE) ->condition('type', 'bill') ->condition('field_bill_multi_session_root', [$tid], 'IN'); $result = $query->execute(); @@ -646,6 +648,7 @@ public function getPrevVersions($prev_vers_session, $prev_vers_print_no) { $query = $this->entityTypeManager->getStorage('node') ->getQuery() + ->accessCheck(FALSE) ->condition('type', ['bill', 'resolution'], 'IN') ->condition('field_ol_session.value', $prev_vers_session) ->condition('field_ol_print_no.value', $prev_vers_print_no) diff --git a/web/modules/custom/nys_blocks/nys_blocks.info.yml b/web/modules/custom/nys_blocks/nys_blocks.info.yml index f3c46e6fd1..a0ddde2fb4 100644 --- a/web/modules/custom/nys_blocks/nys_blocks.info.yml +++ b/web/modules/custom/nys_blocks/nys_blocks.info.yml @@ -1,8 +1,7 @@ name: NYS Blocks type: module description: Defines custom blocks for NYS Senate. -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: NYS Senate dependencies: - block diff --git a/web/modules/custom/nys_blocks/nys_blocks.libraries.yml b/web/modules/custom/nys_blocks/nys_blocks.libraries.yml index 12fbbef143..6f7bed529f 100644 --- a/web/modules/custom/nys_blocks/nys_blocks.libraries.yml +++ b/web/modules/custom/nys_blocks/nys_blocks.libraries.yml @@ -7,4 +7,4 @@ nys_blocks: - core/drupal.ajax - core/drupal - core/drupalSettings - - core/jquery.once + - core/once diff --git a/web/modules/custom/nys_calendar/nys_calendar.info.yml b/web/modules/custom/nys_calendar/nys_calendar.info.yml index a0984c740a..ae1e5fa6a0 100644 --- a/web/modules/custom/nys_calendar/nys_calendar.info.yml +++ b/web/modules/custom/nys_calendar/nys_calendar.info.yml @@ -2,4 +2,4 @@ name: NYS Calendar and Events, custom code type: module description: Custom code for event content type and calendar functionality package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_comment/nys_comment.info.yml b/web/modules/custom/nys_comment/nys_comment.info.yml index 976383f508..fcd8d433e6 100644 --- a/web/modules/custom/nys_comment/nys_comment.info.yml +++ b/web/modules/custom/nys_comment/nys_comment.info.yml @@ -2,6 +2,6 @@ name: NYS Comment type: module description: Custom module that extends to core comments module. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - drupal:comment diff --git a/web/modules/custom/nys_comment/nys_comment.module b/web/modules/custom/nys_comment/nys_comment.module index e8e5fbe744..45222bb994 100644 --- a/web/modules/custom/nys_comment/nys_comment.module +++ b/web/modules/custom/nys_comment/nys_comment.module @@ -164,7 +164,9 @@ function nys_comment_menu_local_tasks_alter(&$data, $route_name, RefinableCachea * Update the existing comments with the default rejected value. */ function nys_comment_deploy_default_rejected_value() { - $cids = \Drupal::entityQuery('comment')->execute(); + $cids = \Drupal::entityQuery('comment') + ->accessCheck(FALSE) + ->execute(); $comment_storage = \Drupal::entityTypeManager()->getStorage('comment'); $comments = $comment_storage->loadMultiple($cids); diff --git a/web/modules/custom/nys_committees/nys_committees.info.yml b/web/modules/custom/nys_committees/nys_committees.info.yml index 2f1734e266..2864e38129 100644 --- a/web/modules/custom/nys_committees/nys_committees.info.yml +++ b/web/modules/custom/nys_committees/nys_committees.info.yml @@ -2,7 +2,6 @@ name: NYS Committees type: module description: Collection of helpers targeting the Committees taxonomy package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_dashboard:nys_dashboard diff --git a/web/modules/custom/nys_config/nys_config.info.yml b/web/modules/custom/nys_config/nys_config.info.yml index 1cc690a947..576601c02e 100644 --- a/web/modules/custom/nys_config/nys_config.info.yml +++ b/web/modules/custom/nys_config/nys_config.info.yml @@ -1,6 +1,5 @@ name: NYS Config type: module description: NYS Config. -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: NYSenate diff --git a/web/modules/custom/nys_contrib_alters/nys_contrib_alters.info.yml b/web/modules/custom/nys_contrib_alters/nys_contrib_alters.info.yml index 35e7b7925d..bba0249f67 100644 --- a/web/modules/custom/nys_contrib_alters/nys_contrib_alters.info.yml +++ b/web/modules/custom/nys_contrib_alters/nys_contrib_alters.info.yml @@ -1,6 +1,5 @@ name: NYS Senate Contrib Alters type: module description: Alterations to contrib modules. -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: NYSenate diff --git a/web/modules/custom/nys_dashboard/nys_dashboard.info.yml b/web/modules/custom/nys_dashboard/nys_dashboard.info.yml index 2e0657b852..363399965a 100644 --- a/web/modules/custom/nys_dashboard/nys_dashboard.info.yml +++ b/web/modules/custom/nys_dashboard/nys_dashboard.info.yml @@ -2,4 +2,4 @@ name: NYS Dashboard type: module description: Custom module for routing dashboard pages. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_homepage_hero/nys_homepage_hero.info.yml b/web/modules/custom/nys_homepage_hero/nys_homepage_hero.info.yml index 57aa9765c3..f1c21ded3f 100644 --- a/web/modules/custom/nys_homepage_hero/nys_homepage_hero.info.yml +++ b/web/modules/custom/nys_homepage_hero/nys_homepage_hero.info.yml @@ -2,6 +2,6 @@ name: NYS Homepage Hero Refresh type: module description: Enables automatic refresh of the homepage for client browsers. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - entityqueue:entityqueue diff --git a/web/modules/custom/nys_homepage_hero/nys_homepage_hero.module b/web/modules/custom/nys_homepage_hero/nys_homepage_hero.module index e5eed1d866..50ba27cc99 100644 --- a/web/modules/custom/nys_homepage_hero/nys_homepage_hero.module +++ b/web/modules/custom/nys_homepage_hero/nys_homepage_hero.module @@ -50,7 +50,9 @@ function nys_homepage_hero_cron() { $query = \Drupal::entityQuery('node'); $query->condition('field_date_range', $now->format(DateTimeItemInterface::DATETIME_STORAGE_FORMAT), '>'); $query->condition('field_date_range', $interval->format(DateTimeItemInterface::DATETIME_STORAGE_FORMAT), '<='); - $results = $query->execute(); + $results = $query + ->accessCheck(FALSE) + ->execute(); if (!empty($results)) { // Turn on the flag to start adding the polling JS to the front page. diff --git a/web/modules/custom/nys_issues/nys_issues.info.yml b/web/modules/custom/nys_issues/nys_issues.info.yml index 55e1e6f215..4fe68797cc 100644 --- a/web/modules/custom/nys_issues/nys_issues.info.yml +++ b/web/modules/custom/nys_issues/nys_issues.info.yml @@ -2,7 +2,6 @@ name: NYS Issues type: module description: Collection of helpers targeting the Issues taxonomy package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_dashboard:nys_dashboard diff --git a/web/modules/custom/nys_legislation_explorer/nys_legislation_explorer.info.yml b/web/modules/custom/nys_legislation_explorer/nys_legislation_explorer.info.yml index 9a1de7e6c7..e375da95a6 100644 --- a/web/modules/custom/nys_legislation_explorer/nys_legislation_explorer.info.yml +++ b/web/modules/custom/nys_legislation_explorer/nys_legislation_explorer.info.yml @@ -2,4 +2,4 @@ name: NYS Legislation Explorer type: module description: Module for pages for searching open leg API package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_list_formatter/nys_list_formatter.info.yml b/web/modules/custom/nys_list_formatter/nys_list_formatter.info.yml index 0bf0985f6c..c98846cc6c 100644 --- a/web/modules/custom/nys_list_formatter/nys_list_formatter.info.yml +++ b/web/modules/custom/nys_list_formatter/nys_list_formatter.info.yml @@ -1,7 +1,7 @@ name: 'NYS List formatter' type: module description: 'A field formatter for rendering values as HTML or comma-separated lists.' -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: Fields dependencies: - field diff --git a/web/modules/custom/nys_messaging/nys_messaging.info.yml b/web/modules/custom/nys_messaging/nys_messaging.info.yml index 16e9839ea3..761ab1e3dd 100644 --- a/web/modules/custom/nys_messaging/nys_messaging.info.yml +++ b/web/modules/custom/nys_messaging/nys_messaging.info.yml @@ -2,6 +2,6 @@ name: NYS Messaging type: module description: Custom messaging module extending the private_messaging module functionality. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - private_message diff --git a/web/modules/custom/nys_metatags/nys_metatags.info.yml b/web/modules/custom/nys_metatags/nys_metatags.info.yml index 546187c559..9a6c4f1dfd 100644 --- a/web/modules/custom/nys_metatags/nys_metatags.info.yml +++ b/web/modules/custom/nys_metatags/nys_metatags.info.yml @@ -2,7 +2,6 @@ name: NYS Metatags type: module description: Custom overrides for Metatags package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - metatag diff --git a/web/modules/custom/nys_migrate/nys_migrate.info.yml b/web/modules/custom/nys_migrate/nys_migrate.info.yml index 648a362bab..c27306f961 100644 --- a/web/modules/custom/nys_migrate/nys_migrate.info.yml +++ b/web/modules/custom/nys_migrate/nys_migrate.info.yml @@ -2,7 +2,7 @@ name: NYS Migrate type: module description: Custom migration module package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - drupal:migrate_drupal - migrate_plus:migrate_plus diff --git a/web/modules/custom/nys_migrate/nys_migrate.install b/web/modules/custom/nys_migrate/nys_migrate.install index aeaff5f095..6fca780b57 100644 --- a/web/modules/custom/nys_migrate/nys_migrate.install +++ b/web/modules/custom/nys_migrate/nys_migrate.install @@ -41,6 +41,7 @@ function nys_migrate_uninstall() { */ function nys_migrate_update_8001() { $node_ids = \Drupal::entityQuery('node') + ->accessCheck(FALSE) ->condition('nid', '9000000', '>') ->condition('type', ['bill', 'resolution'], 'IN') ->execute(); diff --git a/web/modules/custom/nys_opendata/nys_opendata.info.yml b/web/modules/custom/nys_opendata/nys_opendata.info.yml index 71d75e8508..9116f3b14f 100644 --- a/web/modules/custom/nys_opendata/nys_opendata.info.yml +++ b/web/modules/custom/nys_opendata/nys_opendata.info.yml @@ -1,5 +1,5 @@ name: 'NYS OpenData' description: "Handles presentation of Open Data nodes" package: NYSenate -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 type: module diff --git a/web/modules/custom/nys_openleg/nys_openleg.info.yml b/web/modules/custom/nys_openleg/nys_openleg.info.yml index eb42cb85a3..5d1216872f 100644 --- a/web/modules/custom/nys_openleg/nys_openleg.info.yml +++ b/web/modules/custom/nys_openleg/nys_openleg.info.yml @@ -1,6 +1,6 @@ name: 'NYS Openleg' description: "A service to call NYS OpenLeg API" package: NYSenate -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 type: module configure: nys_openleg.config diff --git a/web/modules/custom/nys_openleg/src/BillHelper.php b/web/modules/custom/nys_openleg/src/BillHelper.php index 4bf1bc6eff..3434bba68c 100644 --- a/web/modules/custom/nys_openleg/src/BillHelper.php +++ b/web/modules/custom/nys_openleg/src/BillHelper.php @@ -59,7 +59,9 @@ function ($v) { try { $query = \Drupal::entityQuery('taxonomy_term'); $query->condition('field_ol_member_id', $member_ids, 'IN'); - $ret = $query->execute(); + $ret = $query + ->accessCheck(FALSE) + ->execute(); } catch (\Throwable) { } diff --git a/web/modules/custom/nys_openleg_api/nys_openleg_api.info.yml b/web/modules/custom/nys_openleg_api/nys_openleg_api.info.yml index 4c0faf69c8..bc1c83bbb8 100644 --- a/web/modules/custom/nys_openleg_api/nys_openleg_api.info.yml +++ b/web/modules/custom/nys_openleg_api/nys_openleg_api.info.yml @@ -1,6 +1,6 @@ name: 'NYS Openleg' description: "A service to facilitate calls to the NYS OpenLeg API" package: NYSenate -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 type: module configure: nys_openleg.config diff --git a/web/modules/custom/nys_openleg_imports/nys_openleg_imports.info.yml b/web/modules/custom/nys_openleg_imports/nys_openleg_imports.info.yml index ce57bb1dc0..38da9e1d9b 100644 --- a/web/modules/custom/nys_openleg_imports/nys_openleg_imports.info.yml +++ b/web/modules/custom/nys_openleg_imports/nys_openleg_imports.info.yml @@ -1,7 +1,7 @@ name: 'NYS Openleg Imports' description: "A content import service for OpenLeg" package: NYSenate -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 type: module dependencies: - drupal:node diff --git a/web/modules/custom/nys_petitions/nys_petitions.info.yml b/web/modules/custom/nys_petitions/nys_petitions.info.yml index c16938a30c..c206e00871 100644 --- a/web/modules/custom/nys_petitions/nys_petitions.info.yml +++ b/web/modules/custom/nys_petitions/nys_petitions.info.yml @@ -2,7 +2,6 @@ name: NYS Petitions type: module description: Collection of helpers targeting Petitions package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_dashboard:nys_dashboard diff --git a/web/modules/custom/nys_questionnaires/nys_questionnaires.info.yml b/web/modules/custom/nys_questionnaires/nys_questionnaires.info.yml index 0d1f7d77dd..587d40f83c 100644 --- a/web/modules/custom/nys_questionnaires/nys_questionnaires.info.yml +++ b/web/modules/custom/nys_questionnaires/nys_questionnaires.info.yml @@ -2,7 +2,7 @@ name: NYS Questionnaires type: module description: Custom work for Questionnaires package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - user - taxonomy diff --git a/web/modules/custom/nys_reading/nys_reading.info.yml b/web/modules/custom/nys_reading/nys_reading.info.yml index 923d735837..37a8201d60 100644 --- a/web/modules/custom/nys_reading/nys_reading.info.yml +++ b/web/modules/custom/nys_reading/nys_reading.info.yml @@ -2,7 +2,6 @@ name: NYS Reading type: module description: Custom overrides for Summer Reading Form package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_sage diff --git a/web/modules/custom/nys_registration/nys_registration.info.yml b/web/modules/custom/nys_registration/nys_registration.info.yml index d03e451e8c..1ee743bb53 100644 --- a/web/modules/custom/nys_registration/nys_registration.info.yml +++ b/web/modules/custom/nys_registration/nys_registration.info.yml @@ -2,7 +2,6 @@ name: NYS Registration type: module description: Handles custom behaviors related to registering new users and account logins package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - nys_sage diff --git a/web/modules/custom/nys_sage/nys_sage.info.yml b/web/modules/custom/nys_sage/nys_sage.info.yml index fe317e11ca..1b876e9c06 100644 --- a/web/modules/custom/nys_sage/nys_sage.info.yml +++ b/web/modules/custom/nys_sage/nys_sage.info.yml @@ -1,6 +1,6 @@ name: 'NYS Sage' description: "Provides a client to connect to the NYS SAGE service." package: NYSenate -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 type: module configure: nys_sage.config diff --git a/web/modules/custom/nys_school_forms/nys_school_forms.info.yml b/web/modules/custom/nys_school_forms/nys_school_forms.info.yml index 3fdd784a99..d26896df5e 100644 --- a/web/modules/custom/nys_school_forms/nys_school_forms.info.yml +++ b/web/modules/custom/nys_school_forms/nys_school_forms.info.yml @@ -2,6 +2,6 @@ name: NYS Comment type: module description: Custom module to process school form functionality. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - drupal:comment diff --git a/web/modules/custom/nys_school_forms/src/Controller/SchoolAutocompleteController.php b/web/modules/custom/nys_school_forms/src/Controller/SchoolAutocompleteController.php index b6265e5eca..c19772227a 100644 --- a/web/modules/custom/nys_school_forms/src/Controller/SchoolAutocompleteController.php +++ b/web/modules/custom/nys_school_forms/src/Controller/SchoolAutocompleteController.php @@ -96,7 +96,9 @@ public function handleAutocomplete(Request $request, $form_type) { ->sort('title') ->range(0, 10); - $ids = $query->execute(); + $ids = $query + ->accessCheck(FALSE) + ->execute(); $nodes = $ids ? $this->entityTypeManager->getStorage('node')->loadMultiple($ids) : []; foreach ($nodes as $node) { diff --git a/web/modules/custom/nys_school_forms/src/Controller/SchoolFormsController.php b/web/modules/custom/nys_school_forms/src/Controller/SchoolFormsController.php index 3fa5becf25..86ebb99f4e 100644 --- a/web/modules/custom/nys_school_forms/src/Controller/SchoolFormsController.php +++ b/web/modules/custom/nys_school_forms/src/Controller/SchoolFormsController.php @@ -255,7 +255,9 @@ public function generateArchiveWebformSubmissions($form_type = 'earth_day', $yea ->condition('webform_id', $webform_type) ->range(0, 5) ->sort('created', 'DESC'); - $submission_ids = $query->execute(); + $submission_ids = $query + ->accessCheck(FALSE) + ->execute(); $start = $year; foreach ($submission_ids as $submission_id) { if ($start >= '2022') { diff --git a/web/modules/custom/nys_school_forms/src/SchoolFormsService.php b/web/modules/custom/nys_school_forms/src/SchoolFormsService.php index 28aad608b6..a04a0e81de 100644 --- a/web/modules/custom/nys_school_forms/src/SchoolFormsService.php +++ b/web/modules/custom/nys_school_forms/src/SchoolFormsService.php @@ -144,7 +144,9 @@ public function getResults($params, $admin_view = TRUE) { } } - $query_results = $query->execute(); + $query_results = $query + ->accessCheck(FALSE) + ->execute(); foreach ($query_results as $query_result) { $submission = $this->entityTypeManager->getStorage('webform_submission')->load($query_result); /** diff --git a/web/modules/custom/nys_school_importer/nys_school_importer.info.yml b/web/modules/custom/nys_school_importer/nys_school_importer.info.yml index 7516e4c1cc..7d7439db76 100644 --- a/web/modules/custom/nys_school_importer/nys_school_importer.info.yml +++ b/web/modules/custom/nys_school_importer/nys_school_importer.info.yml @@ -2,4 +2,4 @@ name: NYS School Importer type: module description: CSV School Importer Module package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_search/nys_search.info.yml b/web/modules/custom/nys_search/nys_search.info.yml index eb1be52700..cb2865e64d 100644 --- a/web/modules/custom/nys_search/nys_search.info.yml +++ b/web/modules/custom/nys_search/nys_search.info.yml @@ -1,5 +1,5 @@ name: NYS Search type: module -description: Custom code for search functionality +description: Custom code for search functionality package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 diff --git a/web/modules/custom/nys_senators/nys_senators.info.yml b/web/modules/custom/nys_senators/nys_senators.info.yml index 17f5e73700..a2d5401266 100644 --- a/web/modules/custom/nys_senators/nys_senators.info.yml +++ b/web/modules/custom/nys_senators/nys_senators.info.yml @@ -2,7 +2,7 @@ name: NYS Senators type: module description: Custom work for Senators and their Microsites package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - user - block diff --git a/web/modules/custom/nys_senators/src/Plugin/Block/SenatorCommittees.php b/web/modules/custom/nys_senators/src/Plugin/Block/SenatorCommittees.php index 17d419ed23..fbe4124536 100644 --- a/web/modules/custom/nys_senators/src/Plugin/Block/SenatorCommittees.php +++ b/web/modules/custom/nys_senators/src/Plugin/Block/SenatorCommittees.php @@ -72,6 +72,7 @@ public function build() { $paragraph_storage = $this->entityTypeManager->getStorage('paragraph'); $senator_tid = $node->field_senator_multiref->target_id; $committee_membership_ids = $paragraph_storage->getQuery() + ->accessCheck(FALSE) ->condition('type', 'members') ->condition('field_senator', $senator_tid) ->sort('field_committee_member_role', 'DESC') diff --git a/web/modules/custom/nys_senators/src/Plugin/NysDashboard/ManagementPageOverview.php b/web/modules/custom/nys_senators/src/Plugin/NysDashboard/ManagementPageOverview.php index 4bcc535acc..5c05d007b9 100644 --- a/web/modules/custom/nys_senators/src/Plugin/NysDashboard/ManagementPageOverview.php +++ b/web/modules/custom/nys_senators/src/Plugin/NysDashboard/ManagementPageOverview.php @@ -61,6 +61,7 @@ public function getContent(TermInterface $senator): array { $date = date("Y-m-d"); $storage = $this->manager->getStorage('node'); $results = $storage->getQuery() + ->accessCheck(FALSE) ->condition('field_date_range.value', $date . '%', 'LIKE') ->condition('type', 'session') ->execute(); diff --git a/web/modules/custom/nys_sendgrid/nys_sendgrid.info.yml b/web/modules/custom/nys_sendgrid/nys_sendgrid.info.yml index 4f28754f99..9244b40151 100644 --- a/web/modules/custom/nys_sendgrid/nys_sendgrid.info.yml +++ b/web/modules/custom/nys_sendgrid/nys_sendgrid.info.yml @@ -1,7 +1,7 @@ name: 'NYS Sendgrid' description: "Provides a Mailsystem plugin leveraging Sendgrid's API. Does not provide any SMTP facilities." package: NYSenate -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 type: module configure: nys_sendgrid.config dependencies: diff --git a/web/modules/custom/nys_slack/nys_slack.info.yml b/web/modules/custom/nys_slack/nys_slack.info.yml index 024b8bbd9d..eacfc6ded3 100644 --- a/web/modules/custom/nys_slack/nys_slack.info.yml +++ b/web/modules/custom/nys_slack/nys_slack.info.yml @@ -1,6 +1,6 @@ name: 'NYS Slack' description: "Provides a Drupal service to call a Slack application." package: NYSenate -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 type: module configure: nys_slack.config diff --git a/web/modules/custom/nys_subscriptions/nys_subscriptions.info.yml b/web/modules/custom/nys_subscriptions/nys_subscriptions.info.yml index 64542cc6e6..8c80a8837f 100644 --- a/web/modules/custom/nys_subscriptions/nys_subscriptions.info.yml +++ b/web/modules/custom/nys_subscriptions/nys_subscriptions.info.yml @@ -2,6 +2,5 @@ name: NYS Subscriptions type: module description: 'Provides a subscription entity.' package: NYSenate -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 configure: entity.subscription.settings diff --git a/web/modules/custom/nys_subscriptions/src/Entity/Subscription.php b/web/modules/custom/nys_subscriptions/src/Entity/Subscription.php index 24c0f4f5cf..d4fb477bd2 100644 --- a/web/modules/custom/nys_subscriptions/src/Entity/Subscription.php +++ b/web/modules/custom/nys_subscriptions/src/Entity/Subscription.php @@ -687,7 +687,9 @@ public static function getSubscribers(string $type, string $id, int $flags = sel } // Execute and load all the entities. - $subscriptions = $sub_storage->loadMultiple($subs->execute()); + $subscriptions = $sub_storage->loadMultiple($subs + ->accessCheck(FALSE) + ->execute()); } catch (\Throwable) { $subscriptions = []; diff --git a/web/modules/custom/nys_subscriptions/src/SubscriptionListBuilder.php b/web/modules/custom/nys_subscriptions/src/SubscriptionListBuilder.php index bdf63c1c01..6d58e9aa3f 100644 --- a/web/modules/custom/nys_subscriptions/src/SubscriptionListBuilder.php +++ b/web/modules/custom/nys_subscriptions/src/SubscriptionListBuilder.php @@ -60,6 +60,7 @@ public function render(): array { $total = $this->getStorage() ->getQuery() + ->accessCheck(FALSE) ->count() ->execute(); diff --git a/web/modules/custom/nys_sunset_policy/nys_sunset_policy.info.yml b/web/modules/custom/nys_sunset_policy/nys_sunset_policy.info.yml index 582908161c..2aa09ff567 100644 --- a/web/modules/custom/nys_sunset_policy/nys_sunset_policy.info.yml +++ b/web/modules/custom/nys_sunset_policy/nys_sunset_policy.info.yml @@ -2,6 +2,6 @@ name: NYS Sunset Policy type: module description: NYS Sunset Policy on expiring/expired questionnaires and petitions. package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - drupal:queue_ui diff --git a/web/modules/custom/nys_sunset_policy/nys_sunset_policy.module b/web/modules/custom/nys_sunset_policy/nys_sunset_policy.module index 1aa378cd8a..91d14acc97 100644 --- a/web/modules/custom/nys_sunset_policy/nys_sunset_policy.module +++ b/web/modules/custom/nys_sunset_policy/nys_sunset_policy.module @@ -73,6 +73,7 @@ function nys_sunset_policy_get_expired() { $date = $date->format(DateTimeItemInterface::DATETIME_STORAGE_FORMAT); $query = \Drupal::entityTypeManager()->getStorage('node')->getQuery(); $results = $query + ->accessCheck(FALSE) ->condition('type', ['petition', 'webform'], 'IN') ->condition('status', NodeInterface::PUBLISHED) ->condition('field_expiration_date', $date, '<=') @@ -108,6 +109,7 @@ function nys_sunset_policy_get_expiring() { $future = $future->format('Y-m-d\TH:i:s'); $query = \Drupal::entityTypeManager()->getStorage('node')->getQuery(); $results = $query + ->accessCheck(FALSE) ->condition('type', ['petition', 'webform'], 'IN') ->condition('status', NodeInterface::PUBLISHED) ->condition('field_expiration_date', $date, '>=') diff --git a/web/modules/custom/nys_users/nys_users.info.yml b/web/modules/custom/nys_users/nys_users.info.yml index 345533eefb..3390bea0b1 100644 --- a/web/modules/custom/nys_users/nys_users.info.yml +++ b/web/modules/custom/nys_users/nys_users.info.yml @@ -2,6 +2,6 @@ name: NYS Users type: module description: Custom work for User logic within NY Senate package: Custom -core_version_requirement: ^9 +core_version_requirement: ^9 || ^10 dependencies: - drupal:user diff --git a/web/modules/custom/nys_users/src/Plugin/NysDashboard/NewConstituents.php b/web/modules/custom/nys_users/src/Plugin/NysDashboard/NewConstituents.php index 68c970525c..a649e2ae0b 100644 --- a/web/modules/custom/nys_users/src/Plugin/NysDashboard/NewConstituents.php +++ b/web/modules/custom/nys_users/src/Plugin/NysDashboard/NewConstituents.php @@ -32,6 +32,7 @@ protected function buildContent(TermInterface $senator): ?string { try { $ret = $this->manager->getStorage('user') ->getQuery() + ->accessCheck(FALSE) ->condition('created', $soy, '>=') ->condition('status', 1) ->condition('field_district.entity.tid', $district->id()) diff --git a/web/profiles/custom/nysenate/nysenate.info.yml b/web/profiles/custom/nysenate/nysenate.info.yml index 4fb27a8c59..dd32c70a57 100644 --- a/web/profiles/custom/nysenate/nysenate.info.yml +++ b/web/profiles/custom/nysenate/nysenate.info.yml @@ -1,8 +1,7 @@ name: nysenate Profile type: profile description: 'Rename this profile to the appropriate client or project name.' -core: 8.x -core_version_requirement: '^8 || ^9' +core_version_requirement: ^9 || ^10 # Optional: Declare your installation profile as a distribution # This will make the installer auto-select this installation profile. diff --git a/web/profiles/custom/nysenate/nysenate.install b/web/profiles/custom/nysenate/nysenate.install index b51144d973..381a153395 100644 --- a/web/profiles/custom/nysenate/nysenate.install +++ b/web/profiles/custom/nysenate/nysenate.install @@ -15,7 +15,9 @@ use Drupal\taxonomy\Entity\Term; */ function nysenate_update_9001() { $bcid = \Drupal::entityQuery('block_content') - ->condition('type', 'views')->execute(); + ->accessCheck(FALSE) + ->condition('type', 'views') + ->execute(); if (!empty($bcid)) { $list_views = \Drupal::entityTypeManager() @@ -38,7 +40,9 @@ function nysenate_update_9001() { */ function nysenate_update_9002() { $bcid = \Drupal::entityQuery('block_content') - ->condition('type', 'views')->execute(); + ->accessCheck(FALSE) + ->condition('type', 'views') + ->execute(); if (!empty($bcid)) { $list_views = \Drupal::entityTypeManager() @@ -488,7 +492,9 @@ function nysenate_update_9013() { $query = $node_storage->getQuery(); $query->condition('type', 'session'); $query->notExists('field_upcoming_legislation'); - $nids = $query->execute(); + $nids = $query + ->accessCheck(FALSE) + ->execute(); $nodes = $node_storage->loadMultiple($nids); foreach ($nodes as $node) { diff --git a/web/themes/custom/nysenate_theme/nysenate_theme.info.yml b/web/themes/custom/nysenate_theme/nysenate_theme.info.yml index eea9132228..709463cd3a 100644 --- a/web/themes/custom/nysenate_theme/nysenate_theme.info.yml +++ b/web/themes/custom/nysenate_theme/nysenate_theme.info.yml @@ -13,8 +13,7 @@ name: NY STATE SENATE type: theme description: NY Senate theme built from the Rain base theme. package: Other -core: 8.x -core_version_requirement: '^8 || ^9' +core_version_requirement: ^9 || ^10 # Classy vs. Stable as a base theme: https://www.lullabot.com/articles/a-tale-of-two-base-themes-in-drupal-8-core base theme: rain_theme diff --git a/web/themes/custom/nysenate_theme/nysenate_theme.libraries.yml b/web/themes/custom/nysenate_theme/nysenate_theme.libraries.yml index 831d3d994a..4cdc886057 100644 --- a/web/themes/custom/nysenate_theme/nysenate_theme.libraries.yml +++ b/web/themes/custom/nysenate_theme/nysenate_theme.libraries.yml @@ -52,7 +52,7 @@ add-to-calendar: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery alert-box: @@ -143,7 +143,7 @@ chart: - nysenate_theme/highcharts - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery colorbox: @@ -155,7 +155,7 @@ colorbox: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery columns: @@ -227,7 +227,7 @@ dashboard-inbox: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery dashboard-lists: @@ -249,7 +249,7 @@ dashboard-profile: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery dashboard-profile-edit: @@ -284,7 +284,7 @@ resolution-page: dist/js/resolution-page.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -369,7 +369,7 @@ featured-legislation: dist/js/featured-legislation.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings - nysenate_theme/nysenate-social-buttons @@ -400,7 +400,7 @@ hammer: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery hero: @@ -479,7 +479,7 @@ main-menu: dist/js/main-menu.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -565,7 +565,7 @@ nysenate-accordion: dist/js/nysenate-accordion.es6.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -577,7 +577,7 @@ nysenate-accordion-nested: dist/js/nysenate-accordion-nested.es6.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -669,7 +669,7 @@ nysenate-tabs: dist/js/nysenate-tabs.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -701,7 +701,7 @@ nysenate-twitter-block: dist/js/nysenate-twitter-block.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -713,7 +713,7 @@ nysenate-header: dist/js/nysenate-header.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -909,7 +909,7 @@ slick: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery tooltip: @@ -933,7 +933,7 @@ sticky-nav: dist/js/sticky-nav.es6.js: {} dependencies: - core/jquery - - core/jquery.once + - core/once - core/drupal - core/drupalSettings @@ -1017,5 +1017,5 @@ zebra-datepicker: dependencies: - core/drupal - core/drupalSettings - - core/jquery.once + - core/once - core/jquery diff --git a/web/themes/custom/nysenate_theme/nysenate_theme.theme b/web/themes/custom/nysenate_theme/nysenate_theme.theme index a2f8d62620..f044a2830e 100644 --- a/web/themes/custom/nysenate_theme/nysenate_theme.theme +++ b/web/themes/custom/nysenate_theme/nysenate_theme.theme @@ -6143,7 +6143,8 @@ function nysenate_theme_preprocess_tweets(&$variables) { foreach ($elements as $element) { $created_at = $element['created_at']; $date = date(strtotime($created_at)); - $variables['date'] = \Drupal::service('date.formatter')->formatInterval(REQUEST_TIME - $date); + $request_time = \Drupal::time()->getRequestTime(); + $variables['date'] = \Drupal::service('date.formatter')->formatInterval($request_time - $date); $variables['content']['items'][] = [ 'body' => $element['text'], 'week' => $variables['date'], diff --git a/web/themes/custom/nysenate_theme/src/templates/block/nys-bills--amendments-block.html.twig b/web/themes/custom/nysenate_theme/src/templates/block/nys-bills--amendments-block.html.twig index c7d378df8b..41fe9d8989 100644 --- a/web/themes/custom/nysenate_theme/src/templates/block/nys-bills--amendments-block.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/block/nys-bills--amendments-block.html.twig @@ -36,7 +36,7 @@
{% if amendment.sponsors_array.co|length > 0 or amendment.sponsors_array.multi|length > 0 %} - {% for key,list in amendment.sponsors_array if list|length > 0 %} + {% for key,list in amendment.sponsors_array|filter(list|length > 0) %}

{{ key }}-Sponsors

diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--in-the-news--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--in-the-news--full.html.twig index 1a9799ea42..5dc4b23550 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--in-the-news--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--in-the-news--full.html.twig @@ -26,7 +26,7 @@ {% if content.field_issues %}
    {{ 'ISSUE:'|t }} - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
  • {{ issue }}
  • {% endfor %}
@@ -35,7 +35,7 @@ {% if content.field_committee.0 %}
    {{ 'COMMITTEE:'|t }} - {% for key,committee in content.field_committee if key matches '/^\\d+$/' %} + {% for key,committee in content.field_committee|filter((value, key) => key matches '/^\\d+$/') %}
  • {{ committee }}
  • {% endfor %}
diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--meeting--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--meeting--full.html.twig index 41b2ad8f9c..0a68bb4c31 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--meeting--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--meeting--full.html.twig @@ -99,7 +99,7 @@ {% if field_majority_issue_tag %}
  • {{ field_majority_issue_tag }}
  • {% endif %} - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
  • {{ issue }}
  • {% endfor %} diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--petition--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--petition--full.html.twig index 1524021632..9bfba286cb 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--petition--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--petition--full.html.twig @@ -37,7 +37,7 @@ {% if content.field_issues.0 %}
      {{ 'ISSUE:'|t }} - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
    • {{ issue }}
    • {% endfor %}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--public-hearing--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--public-hearing--full.html.twig index 563551f707..8e625ee5d5 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--public-hearing--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--public-hearing--full.html.twig @@ -96,7 +96,7 @@

    related issues:

    - {% for key, issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key, issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
  • {{ issue }}
  • {% endfor %} diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--resolution.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--resolution.html.twig index feaee02744..f449365968 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--resolution.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--resolution.html.twig @@ -60,7 +60,7 @@
    {% if sponsors_array.co|length > 0 or sponsors_array.multi|length > 0 %} - {% for key,list in sponsors_array if list|length > 0 %} + {% for key,list in sponsors_array|filter(list|length > 0) %}

    {{ key }}-Sponsors

    diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--school-forms--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--school-forms--full.html.twig index 5f928f5f0a..1e32adb448 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--school-forms--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--school-forms--full.html.twig @@ -25,7 +25,7 @@

    {% if content.field_issues.0 %}
      - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
    • {{ issue }}
    • {% endfor %}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--student-program--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--student-program--full.html.twig index d123e18f70..05a403bbdc 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--student-program--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--student-program--full.html.twig @@ -21,8 +21,7 @@ {% if content.field_issues[0] %}
      - {% for key, issue in content.field_issues - if key matches '/^\\d+$/' %} + {% for key, issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
    • {{ issue }}
    • {% endfor %}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--video--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--video--full.html.twig index 3a849e7bde..86bc3aeb1b 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--video--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--video--full.html.twig @@ -34,7 +34,7 @@ {% if content.field_issues.0 %}
      - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
    • {{ issue }}
    • {% endfor %}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/content/node--webform--full.html.twig b/web/themes/custom/nysenate_theme/src/templates/content/node--webform--full.html.twig index 1fc593dd3d..7ca3a3636e 100644 --- a/web/themes/custom/nysenate_theme/src/templates/content/node--webform--full.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/content/node--webform--full.html.twig @@ -24,7 +24,7 @@

    {% if content.field_issues.0 %}
      - {% for key,issue in content.field_issues if key matches '/^\\d+$/' %} + {% for key,issue in content.field_issues|filter((value, key) => key matches '/^\\d+$/') %}
    • {{ issue }}
    • {% endfor %}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-committee.html.twig b/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-committee.html.twig index 06646af68b..59dc644d82 100644 --- a/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-committee.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-committee.html.twig @@ -15,7 +15,7 @@ */ #} -{% spaceless %} +{% apply spaceless %} {# Attach the flag CSS library.#} {{ attach_library('flag/flag.link') }} @@ -44,7 +44,7 @@
    {{ title }}
    -{% endspaceless %} +{% endapply %} {# Attach flag count. {% set count = flagcount(flag, flaggable) %} diff --git a/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-issue.html.twig b/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-issue.html.twig index d0d3bb2f62..faa0d9970c 100644 --- a/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-issue.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/misc/flag--follow-issue.html.twig @@ -15,7 +15,7 @@ */ #} -{% spaceless %} +{% apply spaceless %} {# Attach the flag CSS library.#} {{ attach_library('flag/flag.link') }} @@ -40,7 +40,7 @@ {% set attributes = attributes.setAttribute('rel', 'nofollow') %}
    {{ title }}
    -{% endspaceless %} +{% endapply %} {# Attach flag count. {% set count = flagcount(flag, flaggable) %} diff --git a/web/themes/custom/nysenate_theme/src/templates/misc/flag.html.twig b/web/themes/custom/nysenate_theme/src/templates/misc/flag.html.twig index 481b574732..80431f2d8c 100644 --- a/web/themes/custom/nysenate_theme/src/templates/misc/flag.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/misc/flag.html.twig @@ -14,7 +14,7 @@ * - flaggable: The flaggable entity. */ #} -{% spaceless %} +{% apply spaceless %} {# Attach the flag CSS library.#} {{ attach_library('flag/flag.link') }} @@ -42,5 +42,4 @@
    {{ title }}
    - -{% endspaceless %} +{% endapply %} diff --git a/web/themes/custom/nysenate_theme/src/templates/semanticviews-style--constituent-bills--constituent-bills-voted-on.html.twig b/web/themes/custom/nysenate_theme/src/templates/semanticviews-style--constituent-bills--constituent-bills-voted-on.html.twig index 2ade14bcd6..3043a04a94 100644 --- a/web/themes/custom/nysenate_theme/src/templates/semanticviews-style--constituent-bills--constituent-bills-voted-on.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/semanticviews-style--constituent-bills--constituent-bills-voted-on.html.twig @@ -9,7 +9,7 @@ {{ attach_library('nysenate_theme/newsroom-content') }} {{ attach_library('nysenate_theme/nysenate-tabs') }}
    - {% for key,row in rows if key matches '/^\\d+$/' %} + {% for key,row in rows|filter((value, key) => key matches '/^\\d+$/') %}
    {{ row.content }}
    diff --git a/web/themes/custom/nysenate_theme/src/templates/views/views-view-unformatted--committee-meetings--past.html.twig b/web/themes/custom/nysenate_theme/src/templates/views/views-view-unformatted--committee-meetings--past.html.twig index 1206da38c0..30941d8539 100644 --- a/web/themes/custom/nysenate_theme/src/templates/views/views-view-unformatted--committee-meetings--past.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/views/views-view-unformatted--committee-meetings--past.html.twig @@ -34,7 +34,7 @@