| 1 | <?php |
||
| 12 | class Curies extends \yii\base\Behavior |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Link[] The curies links. Autogenerated links will be stored here. |
||
| 16 | */ |
||
| 17 | public $curiesLinks = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ?string name of the autogenerated expand curie. Set null if you |
||
| 21 | * don't want to autogenerate expand curie. |
||
| 22 | */ |
||
| 23 | public $expandCurieName = 'expand'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array the configuration used to generate the expand curie. |
||
| 27 | */ |
||
| 28 | public $expandCurieLink = [ |
||
| 29 | 'title' => 'Embeddable related resources.', |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Return all the curies and related links. |
||
| 34 | * |
||
| 35 | * @return array the configured and autogenerated curies and related links. |
||
| 36 | */ |
||
| 37 | public function getCuriesLinks(): array |
||
| 60 | } |
||
| 61 |