Closed (fixed)
Project:
Name Field
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2026 at 18:24 UTC
Updated:
12 Aug 2026 at 00:50 UTC
Jump to comment: Most recent
------ ---------------------------------------------------------------------
Line src/ListBuilder/NameFormatListBuilder.php
------ ---------------------------------------------------------------------
81 Direct injection of entity storage via $storage is not recommended.
Inject Drupal\Core\Entity\EntityTypeManagerInterface and call
getStorage() at the call-site instead.
πͺͺ drupal.entityStorageDirectInjection
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/ListBuilder/NameListFormatListBuilder.php
------ ---------------------------------------------------------------------
71 Direct injection of entity storage via $storage is not recommended.
Inject Drupal\Core\Entity\EntityTypeManagerInterface and call
getStorage() at the call-site instead.
πͺͺ drupal.entityStorageDirectInjection
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/Service/NameFormatterService.php
------ ---------------------------------------------------------------------
96 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
97 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/Service/NameOptionService.php
------ ---------------------------------------------------------------------
51 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
52 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line tests/src/Functional/NameFormatterTest.php
------ ----------------------------------------------------------------------
22 Class Drupal\name\NameFormatter not found.
πͺͺ class.notFound
π‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ----------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line tests/src/Unit/Plugin/Field/FieldFormatter/NameFormatterTest.php
------ ---------------------------------------------------------------------
170 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
171 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/Plugin/diff/Field/NameFieldBuilderTest.php
------ -----------------------------------------------------------------------
94 Drupal\Core\DependencyInjection\DependencySerializationTrait does not
support private properties.
πͺͺ dependencySerializationTraitProperty.unsupportedPrivateProperty
π‘ See https://www.drupal.org/node/3110266
94 Read-only properties are incompatible with
Drupal\Core\DependencyInjection\DependencySerializationTrait.
πͺͺ dependencySerializationTraitProperty.unsupportedReadOnlyProperty
π‘ See https://www.drupal.org/node/3110266
------ -----------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line tests/src/Unit/Traits/NameFormSettingsHelperTraitTest.php
------ ---------------------------------------------------------------------
71 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal
------ ---------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/Utility/FormattedNameTokenReplacementTest.php
------ -----------------------------------------------------------------------
468 Drupal\Core\DependencyInjection\DependencySerializationTrait does not
support private properties.
πͺͺ dependencySerializationTraitProperty.unsupportedPrivateProperty
π‘ See https://www.drupal.org/node/3110266
468 Read-only properties are incompatible with
Drupal\Core\DependencyInjection\DependencySerializationTrait.
πͺͺ dependencySerializationTraitProperty.unsupportedReadOnlyProperty
π‘ See https://www.drupal.org/node/3110266
469 Drupal\Core\DependencyInjection\DependencySerializationTrait does not
support private properties.
πͺͺ dependencySerializationTraitProperty.unsupportedPrivateProperty
π‘ See https://www.drupal.org/node/3110266
469 Read-only properties are incompatible with
Drupal\Core\DependencyInjection\DependencySerializationTrait.
πͺͺ dependencySerializationTraitProperty.unsupportedReadOnlyProperty
π‘ See https://www.drupal.org/node/3110266
470 Drupal\Core\DependencyInjection\DependencySerializationTrait does not
support private properties.
πͺͺ dependencySerializationTraitProperty.unsupportedPrivateProperty
π‘ See https://www.drupal.org/node/3110266
470 Read-only properties are incompatible with
Drupal\Core\DependencyInjection\DependencySerializationTrait.
πͺͺ dependencySerializationTraitProperty.unsupportedReadOnlyProperty
π‘ See https://www.drupal.org/node/3110266
471 Drupal\Core\DependencyInjection\DependencySerializationTrait does not
support private properties.
πͺͺ dependencySerializationTraitProperty.unsupportedPrivateProperty
π‘ See https://www.drupal.org/node/3110266
471 Read-only properties are incompatible with
Drupal\Core\DependencyInjection\DependencySerializationTrait.
πͺͺ dependencySerializationTraitProperty.unsupportedReadOnlyProperty
π‘ See https://www.drupal.org/node/3110266
------ -----------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line tests/src/Unit/Utility/NameOptionValidatorTest.php
------ ---------------------------------------------------------------------
47 Storing entity storage as a class property is not recommended. Call
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() at the
call-site instead.
πͺͺ drupal.entityStoragePropertyAssignment
π‘ See
https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bluegeek9 commentedComment #5
bluegeek9 commented