Returns a topic created by the Topic-Annotation.
Name | Type | Description |
---|---|---|
id | string | The topic id |
Source code:
<?php
class SomeClass
{
/**
* @CodeDocs\Topic(id="myTopic")
*
* This text belongs to the topic.
* It ends until the next annotation starts.
*
* @CodeDocs\Topic(id="anotherTopic")
*
* This is another one...
*/
public function __construct()
{
}
}
Documentation source:
{{ topic(id:'myTopic') }}
Result:
This text belongs to the topic.
It ends until the next annotation starts.