-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnamespace.html.twig
More file actions
76 lines (69 loc) · 3.43 KB
/
namespace.html.twig
File metadata and controls
76 lines (69 loc) · 3.43 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
{% extends 'base.html.twig' %}
{% block content %}
{% include 'components/breadcrumbs.html.twig' %}
<article class="phpdocumentor-element -namespace">
{{ include('components/namespace-title.html.twig') }}
{{ include('components/table-of-contents.html.twig', {'namespaces': node.children}) }}
{{ include('components/constants.html.twig') }}
{{ include('components/functions.html.twig') }}
{{ include('components/source-modal.html.twig') }}
</article>
{% endblock %}
{% block on_this_page %}
{% set constants = constants(node) %}
{% set functions = node.functions|default([]) %}
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
{% if node.packages is not empty %}
<li><a href="{{ link(node) }}#packages">Packages</a></li>
{% endif %}
{% if node.namespaces is not empty %}
<li><a href="{{ link(node) }}#namespaces">Namespaces</a></li>
{% endif %}
{% if node.interfaces is not empty %}
<li><a href="{{ link(node) }}#toc-interfaces">Interfaces</a></li>
{% endif %}
{% if node.classes is not empty %}
<li><a href="{{ link(node) }}#toc-classes">Classes</a></li>
{% endif %}
{% if node.traits is not empty %}
<li><a href="{{ link(node) }}#toc-traits">Traits</a></li>
{% endif %}
{% if node.enums is not empty %}
<li><a href="{{ link(node) }}#toc-enums">Enums</a></li>
{% endif %}
{% if node.constants is not empty %}
<li><a href="{{ link(node) }}#toc-constants">Constants</a></li>
{% endif %}
{% if node.functions is not empty %}
<li><a href="{{ link(node) }}#toc-functions">Functions</a></li>
{% endif %}
</ul>
</li>
{% if constants is not empty %}
<li class="phpdocumentor-on-this-page-section__title">Constants</li>
<li>
<ul class="phpdocumentor-list -clean">
{% for constant in constants|sortByVisibility %}
<li class="{% if constants.deprecated %}-deprecated{% endif %}"><a href="{{ link(constant) }}">{{ constant.name }}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% if functions is not empty %}
<li class="phpdocumentor-on-this-page-section__title">Functions</li>
<li>
<ul class="phpdocumentor-list -clean">
{% for function in functions|sortByVisibility %}
<li class="{% if function.deprecated %}-deprecated{% endif %}"><a href="{{ link(function) }}">{{ function.name }}()</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
</ul>
</section>
{% endblock %}