File tree Expand file tree Collapse file tree 6 files changed +15
-10
lines changed
tools/php_api_ref/.phpdoc/template Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 66 {{ parent () }}
77
88 <script >
9+ window .symfonyVersion = ' 5.4' ;
910 window .addEventListener (' keyup' , (event ) => {
1011 if (event .key === ' /' ) {
1112 event .stopImmediatePropagation ();
Original file line number Diff line number Diff line change 88
99{% block content %}
1010 {% include ' components/breadcrumbs.html.twig' %}
11- {% include ' components/class-title.html.twig' with { symfony_version : symfony_version } %}
11+ {% include ' components/class-title.html.twig' %}
1212 {% include (' components/element-header.html.twig' ) %}
1313 {% include ' components/constants.html.twig' %}
1414 {% include ' components/properties.html.twig' %}
Original file line number Diff line number Diff line change 1414
1515 {% if node .parent %}
1616 <div class =" content-header__subheader" >
17- {% if node .parent .__toString starts with ' \\Symfony\\' %}
18- Extends
19- <a href =" {{ ' https://github.com/symfony/symfony/blob/' ~ symfony_version ~ ' /src' ~ node .parent | replace ({' \\' : ' /' }) ~ ' .php' }}" class =" external" >
20- <abbr title =" {{ node .parent }}" >{{ node .parent .name }}</abbr >
21- </a >
22- {% else %}
23- Extends {{ node .parent | route(' class:short' ) }}
24- {% endif %}
17+ Extends {{ node .parent | route(' class:short' ) }}
2518 </div >
2619 {% endif %}
2720
Original file line number Diff line number Diff line change 1+ $ ( ( ) => {
2+ $ ( 'abbr' ) . each ( ( index , element ) => {
3+ let $this = $ ( element ) ;
4+ let fqcn = $this . attr ( 'title' ) ;
5+ if ( fqcn . startsWith ( '\\Symfony\\' ) && 'a' != $this . parent ( ) . prop ( 'tagName' ) ) {
6+ let href = 'https://github.com/symfony/symfony/blob/' + symfonyVersion + '/src' + fqcn . replaceAll ( '\\' , '/' ) + '.php' ;
7+ $this . wrap ( '<a href="' + href + '" class="external">' ) ;
8+ }
9+ } ) ;
10+ } )
Original file line number Diff line number Diff line change 6868 <script src =" js/search_custom.js" ></script >
6969 <script src =" js/copy_to_clipboard.js" ></script >
7070 <script src =" js/version_switcher_custom.js" ></script >
71+ <script src =" js/external-links.js" ></script >
7172</body >
7273</html >
Original file line number Diff line number Diff line change 88
99{% block content %}
1010 {% include ' components/breadcrumbs.html.twig' %}
11- {% include ' components/trait-title.html.twig' with { symfony_version : symfony_version } %}
11+ {% include ' components/trait-title.html.twig' %}
1212 {% include (' components/element-header.html.twig' ) %}
1313 {% include ' components/constants.html.twig' %}
1414 {% include ' components/properties.html.twig' %}
You can’t perform that action at this time.
0 commit comments