symfony

Retrofit: Running legacy Drupal 7 code on your Drupal 10 site (mglaman.dev)

I have had an idea for a few years. It is the greatest yet worst idea I’ve had for four years. Some 400,000 Drupal 7 sites report to Drupal.org through the Update module. Drupal 7's end-of-life is coming on November 1, 2023, and has been a continual topic of discussion.

Factories and dependency injection (mglaman.dev)

Last week I wrote about dependency injection anti-patterns in Drupal. These anti-patterns occur when your service's constructor has logic that interacts with the injected dependent services beyond assigning them to properties. These anti-patterns include creating a new object from a factory or retrieving an object from a stack....

Drupal 10: Using A Lazy Builder To Create A Dynamic Button (www.hashbangcode.com)

Adding dynamic and interactive elements to a web page can be a challenge, and there are a few techniques available in Drupal to allow for this. One solution might be to add a form to the page, but this can cause problems with the cache system. Adding forms actually makes it slightly difficult to cache the page properly and you...

Dependency injection anti-patterns in Drupal (mglaman.dev)

Whenever I have done an audit for a Drupal codebase, one of the first things I manually review and profile is dependency injection anti-patterns in custom code and any contributed modules used. The anti-pattern isn't for accessing services statically through \Drupal: service. These anti-patterns live within the class's...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Symfony
  • DreamBathrooms
  • magazineikmin
  • osvaldo12
  • InstantRegret
  • rosin
  • Youngstown
  • mdbf
  • ngwrru68w68
  • slotface
  • everett
  • modclub
  • kavyap
  • thenastyranch
  • Durango
  • JUstTest
  • tacticalgear
  • GTA5RPClips
  • ethstaker
  • cubers
  • khanakhh
  • Leos
  • cisconetworking
  • normalnudes
  • provamag3
  • tester
  • anitta
  • megavids
  • lostlight
  • All magazines