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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

diaodiallo created an issue. See original summary.

zcht made their first commit to this issue’s fork.

diaodiallo’s picture

Issue summary: View changes
diaodiallo’s picture

Here is a patch for this formatting.

  • zcht committed be74a5a on 1.x
    Issue #3263350 by diaodiallo: Formatting problem on annotation...
zcht’s picture

Status: Active » Fixed

Thanks for the patch, it is merged.

zcht’s picture

Status: Fixed » Closed (fixed)
zcht’s picture