Skip to content
Snippets Groups Projects
Commit 9b274e1a authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #2309405 by undertext, er.pushpinderrana: Add note to Annotations topic...

Issue #2309405 by undertext, er.pushpinderrana: Add note to Annotations topic about PluginID shorthand annotation if there is only an ID
parent a556b96a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment