From 9b274e1a264924df61d29a26dda53451f868250b Mon Sep 17 00:00:00 2001
From: Jennifer Hodgdon <yahgrp@poplarware.com>
Date: Tue, 29 Jul 2014 09:52:42 -0700
Subject: [PATCH] Issue #2309405 by undertext, er.pushpinderrana: Add note to
 Annotations topic about PluginID shorthand annotation if there is only an ID

---
 core/modules/system/system.api.php | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php
index 111ddfe31da9..7fc912bf483f 100644
--- a/core/modules/system/system.api.php
+++ b/core/modules/system/system.api.php
@@ -2866,6 +2866,19 @@ function hook_config_import_steps_alter(&$sync_steps, \Drupal\Core\Config\Config
  * Note that you must use double quotes; single quotes will not work in
  * annotations.
  *
+ * Some annotation types, which extend the "@ PluginID" annotation class, have
+ * only a single 'id' key in their annotation. For these, it is possible to use
+ * a shorthand annotation. For example:
+ * @code
+ * * @ViewsArea("entity")
+ * @endcode
+ * in place of
+ * @code
+ * * @ViewsArea(
+ * *   id = "entity"
+ * *)
+ * @endcode
+ *
  * The available annotation classes are listed in this topic, and can be
  * identified when you are looking at the Drupal source code by having
  * "@ Annotation" in their documentation blocks (without the space after @). To
-- 
GitLab