API page: https://api.drupal.org/api/drupal/core%21modules%21system%21system.api.p...

Enter a descriptive title (above) relating to Annotations, then describe the problem you have found:

The Annotations topic (@defgroup annotation) in Drupal 8.x has some information in it that is no longer correct. It says:

To find examples of annotation for a particular annotation class, such as EntityType, look for class files that contain a PHP "use" declaration of the annotation class, or files that have an @ annotation section using the annotation class.

The first part of this is incorrect: There is no longer a PHP "use" declaration for annotation classes. It needs to be removed. The second part about the @ annotation section is still correct.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ajiang’s picture

Assigned: Unassigned » ajiang
ajiang’s picture

Status: Active » Needs review
FileSize
758 bytes

Changed the blockquoted text in issue summary to the following:

To find examples of annotation for a particular annotation class, such as EntityType, look for class files that have an @ annotation section using the annotation class.

ajiang’s picture

slashrsm’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

jhodgdon’s picture

Thank you! Looks good to me too. I'll get it committed shortly.

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks again! Committed to 8.x.

And please do not hide the latest patch file on issues. :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.