Resolve #3426959 "Convert viewsarea plugin"
2 unresolved threads
Closes #3426959
Merge request reports
Activity
added 23 commits
-
d63cea5d...4add05d0 - 22 commits from branch
project:11.x
- ca84c95d - Merge branch drupal:11.x into 3426959-convert-viewsarea-plugin
-
d63cea5d...4add05d0 - 22 commits from branch
added 9 commits
-
7b123061...e84fc608 - 6 commits from branch
project:11.x
- 6db2b668 - 3426959 Convert ViewsArea plugin discovery to attributes
- a79e728b - fix feedback
- faf175c5 - Issue/3426959: Added the attribute examples and removed the annotation...
Toggle commit list-
7b123061...e84fc608 - 6 commits from branch
1854 1854 * The Drupal plugin system has a set of reusable components that developers 1855 1855 * can use, override, and extend in their modules. Most of the plugins use 1856 * annotations, which let classes register themselves as plugins and describe 1857 * their metadata. (Annotations can also be used for other purposes, though 1856 * attributes, which let classes register themselves as plugins and describe 1857 * their metadata. (Attributes can also be used for other purposes, though 1858 1858 * at the moment, Drupal only uses them for the plugin system.) 1859 1859 * 1860 * To annotate a class as a plugin, add code similar to the following to the 1860 * To attribute a class as a plugin, add code similar to the following to the 1861 1861 * end of the documentation block immediately preceding the class declaration: 1862 1862 * @code 1863 * * @ContentEntityType( 1864 * * id = "comment", 1865 * * label = @Translation("Comment"), 1863 * * #[ViewsArea( changed this line in version 5 of the diff
added 1 commit
- abff2e36 - Issue/3426959: Added the attribute examples and removed the annotation...
added 11 commits
-
abff2e36...e7159707 - 10 commits from branch
project:11.x
- 72ff4813 - Merge branch drupal:11.x into 3426959-convert-viewsarea-plugin
-
abff2e36...e7159707 - 10 commits from branch
1847 1847 */ 1848 1848 1849 1849 /** 1850 * @defgroup annotation Annotations 1850 * @defgroup attribute Attributes 1851 1851 * @{ 1852 * Annotations for class discovery and metadata description. 1852 * Attributes for class discovery and metadata description. 1853 1853 * 1854 1854 * The Drupal plugin system has a set of reusable components that developers 1855 1855 * can use, override, and extend in their modules. Most of the plugins use 1856 * annotations, which let classes register themselves as plugins and describe 1857 * their metadata. (Annotations can also be used for other purposes, though 1856 * attributes, which let classes register themselves as plugins and describe 1857 * their metadata. (Attributes can also be used for other purposes, though 1858 1858 * at the moment, Drupal only uses them for the plugin system.) - Comment on lines +1857 to 1858
This is not true - we use attributes for other purposes. See https://www.drupal.org/node/3396179 for an example - but there are others.
Please register or sign in to reply