Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Few formatting problems on annotation properties. Thanks to @mxh for reporting this (https://www.drupal.org/project/storage/issues/3259435).
<?php
/**
* Provides a content enabler for storage entities.
*
* @GroupContentEnabler(
* id = "group_storage",
* label = @Translation("Group storage"),
* description = @Translation("Adds storage entities to groups both publicly
* and privately."), entity_type_id = "storage", entity_access = TRUE,
* reference_label = @Translation("Title"), reference_description =
* @Translation("The title of the storage to add to the group"), deriver =
* "Drupal\group_storage\Plugin\GroupContentEnabler\GroupStorageDeriver",
* handlers = {
* "access" = "Drupal\group\Plugin\GroupContentAccessControlHandler",
* "permission_provider" =
* "Drupal\group_storage\Plugin\GroupStoragePermissionProvider",
* }
* )
*/
?>
Proposed resolution
Please set one annotation property for each line according to Drupal's coding standards
Comment | File | Size | Author |
---|---|---|---|
#4 | Formatting_problem_on_annotation_properties-3263350-4.patch | 1.45 KB | diaodiallo |
Issue fork group_storage-3263350
Show commands
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 #3
diaodiallo CreditAttribution: diaodiallo at JSI Research & Training Institute, Inc. (JSI) commentedComment #4
diaodiallo CreditAttribution: diaodiallo at JSI Research & Training Institute, Inc. (JSI) commentedHere is a patch for this formatting.
Comment #6
zcht CreditAttribution: zcht commentedThanks for the patch, it is merged.
Comment #7
zcht CreditAttribution: zcht commentedComment #8
zcht CreditAttribution: zcht commented