-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.html.twig
More file actions
121 lines (107 loc) · 5.26 KB
/
interface.html.twig
File metadata and controls
121 lines (107 loc) · 5.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{% extends 'base.html.twig' %}
{% block content %}
{% include 'components/breadcrumbs.html.twig' %}
<article class="phpdocumentor-element">
<div class="mb-4">
{{ include('components/interface-title.html.twig') }}
</div>
<div class="mb-4">
{{ include('components/element-found-in.html.twig') }}
</div>
<div class="mb-4">
{{ include('components/element-header.html.twig') }}
</div>
{% set constants = constants(node) %}
{% set methods = methods(node) %}
<div class="d-grid gap-4">
{% if constants is not empty %}
<section class="card border-0 shadow-sm">
<div class="card-header bg-body-tertiary border-0 d-flex align-items-center gap-2">
<i class="fas fa-thumbtack text-warning"></i>
<span class="fw-semibold">Constants</span>
</div>
<div class="card-body p-4">
{{ include('components/constants.html.twig') }}
</div>
</section>
{% endif %}
{% if methods is not empty %}
<section class="card border-0 shadow-sm">
<div class="card-header bg-body-tertiary border-0 d-flex align-items-center gap-2">
<i class="fas fa-code text-primary"></i>
<span class="fw-semibold">Methods</span>
</div>
<div class="card-body p-4">
{{ include('components/methods.html.twig') }}
</div>
</section>
{% endif %}
</div>
{{ include('components/source-modal.html.twig') }}
</article>
{% endblock %}
{% block on_this_page %}
{% set constants = constants(node) %}
{% set methods = methods(node) %}
<section>
<div class="d-grid gap-4">
<div>
<div class="small text-uppercase fw-semibold text-body-secondary mb-2">Table of contents</div>
<div class="list-group list-group-flush">
{% if constants is not empty %}
<a class="list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent" href="{{ link(node) }}#toc-constants">
Constants
</a>
{% endif %}
{% if methods is not empty %}
<a class="list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent" href="{{ link(node) }}#toc-methods">
Methods
</a>
{% endif %}
</div>
</div>
{% if methods is not empty %}
<div>
<div class="small text-uppercase fw-semibold text-body-secondary mb-2 d-flex align-items-center gap-2">
<i class="fas fa-code text-primary"></i>
<span>Methods</span>
</div>
<div class="list-group list-group-flush">
{% for method in methods|sortByVisibility %}
<a
class="list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent d-flex align-items-center justify-content-between gap-2{% if method.deprecated %} text-decoration-line-through text-body-secondary{% endif %}"
href="{{ link(method) }}"
>
<span class="text-truncate">{{ method.name }}()</span>
{% if method.deprecated %}
<span class="badge text-bg-warning">Deprecated</span>
{% endif %}
</a>
{% endfor %}
</div>
</div>
{% endif %}
{% if constants is not empty %}
<div>
<div class="small text-uppercase fw-semibold text-body-secondary mb-2 d-flex align-items-center gap-2">
<i class="fas fa-thumbtack text-warning"></i>
<span>Constants</span>
</div>
<div class="list-group list-group-flush">
{% for constant in constants|sortByVisibility %}
<a
class="list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent d-flex align-items-center justify-content-between gap-2{% if constant.deprecated %} text-decoration-line-through text-body-secondary{% endif %}"
href="{{ link(constant) }}"
>
<span class="text-truncate">{{ constant.name }}</span>
{% if constant.deprecated %}
<span class="badge text-bg-warning">Deprecated</span>
{% endif %}
</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</section>
{% endblock %}