Skip to content
  1. Mar 27, 2024
    • mscieszka's avatar
      Use DI when populating fields and generating nodes · d9be9f2e
      mscieszka authored
      Inject the entity field manager service in DevelGenerateBase as it is used in several DevelGenerate plugins.
      
      Move the logic that adds comments and statistics from the devel_generate.module's 'hook_entity_insert' implementation to ContentDevelGenerate as it was used for node generation.
      
      Change approach to not override constructors in devel_generate plugins.
      d9be9f2e
  2. Mar 19, 2024
    • mscieszka's avatar
      #434 use dependency injection in classes · 30225155
      mscieszka authored
      use dependency injection wherever possible, replace non-extent `\Drupal\Core\Datetime\TimeInterface` with `\Drupal\Component\Datetime\TimeInterface`, make type hints for variables more specific (e.g. `UserStorageInterface` instead of `EntityStorageInterface`), move optional arguments to the end, add some missing types, restore the `DrupalPractice.Objects.GlobalClass.GlobalClass` sniff as it now passes.
      30225155
  3. Jun 16, 2014
  4. Apr 23, 2014
  5. Mar 02, 2014