symfonystation,
@symfonystation@phpc.social avatar

PHP Attributes for Drupal Plugins via DrupalizeMe. As of PHP 8.1, the PHP language has native support for attributes that are compatible with Drupal’s plugin system use case. As a result, Drupal will transition from the use of annotations to PHP attributes, to supply metadata and configuration for plugins. For now, Drupal will continue to support both annotations and attributes. https://drupalize.me/blog/php-attributes-drupal-plugins #Drupal

joachim,
@joachim@drupal.community avatar

@symfonystation A really nice consequence of this is that plugins generated by Drupal Code Builder have comments within the attributes to explain the properties. Code analysis gets these from the attribute class's documentation.

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