Skip to content

Instantly share code, notes, and snippets.

View amcgowanca's full-sized avatar

Aaron McGowan amcgowanca

View GitHub Profile
@amcgowanca
amcgowanca / d8-move-anon-user-creation-to-storage.patch
Created March 6, 2019 11:53
Drupal 8: Moves anonymous user creation from User::getAnonymousUser() to storage handler.
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index b8675866..6586cdb8 100644
--- a/core/modules/user/src/Entity/User.php
+++ b/core/modules/user/src/Entity/User.php
@@ -416,20 +416,9 @@ public function checkExistingPassword(UserInterface $account_unchanged) {
*/
public static function getAnonymousUser() {
if (!isset(static::$anonymousUser)) {
-
- // @todo Use the entity factory once available, see
{
"name": "company/project",
"type": "project",
"description": "Company project description.",
"license": "GPL-2.0-only",
"require": {
"php": ">=7.3",
"drupal/config_split": "^1.0.0",
"drupal/core-composer-scaffold": "^8.8",
"drupal/core-recommended": "^8.8.0",
# Ignore configuration files that may contain sensitive information.
local.settings.php
local.drush.yml
local.site.yml
local.services.yml
tests/behat/local.yml
box/local.config.yml
*.local
local.blt.yml
; Globals
;expose_php = on
;max_execution_time = 300
;max_input_time = 900
;max_input_vars = 10000
memory_limit = 1024M
;upload_max_filesize = 256M
;post_max_size = 256M
;error_reporting = E_ALL & ~E_DEPRECATED
;ignore_repeated_errors = on