Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 302749

Annotations topic should document PluginID shorthand

$
0
0

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

The Annotations topic should document that 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:

* @SimplePluginType("id_value")

in place of
* @SimplePluginType(
*   'id' => "id_value"
*  )

Task: Add this information to the topic, which is located in the file core/modules/system/system.api.php near the end (although the topic documentation may soon be moved to file core.api.php).

Note that you need to leave a space after the @ sign, as is done in the rest of this documentation.


Viewing all articles
Browse latest Browse all 302749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>