api-8.x-1.x-dev/templates/file-page.html.twig

templates/file-page.html.twig
{#
/**
 * @file
 * Displays an API page for a file and the objects defined in it.
 *
 * Available variables:
 * - alternatives: List of alternate versions (branches) of this file.
 * - documentation: Documentation from the comment header of the file.
 * - see: See also documentation.
 * - deprecated: Deprecated documentation.
 * - namespace: Name of the namespace for this function, if any.
 * - objects: List of functions, classes, etc. defined in the file.
 * - call_links: Links to calling functions (for theme templates).
 * - code: Source code for the file.
 * - git_url: The URL pointing to the origin of the source code.
 * - git_url_domain: Domain of the Git source URL, (e.g., git.drupalcode.org).
 * - related_topics: List of related groups/topics.
 * - defined: Location of the file.
 * - branch: Object with information about the branch.
 * - object: Object with information about the file.
 *
 * @see api_preprocess_api_file_page()
 *
 * @ingroup themeable
 */
#}

{{ alternatives }}

{{ documentation }}

{% if namespace|render|striptags|trim %}
  <h3>{{ 'Namespace'|t }}</h3>
  {{ namespace }}
{% endif %}

{% if deprecated|render|striptags|trim %}
  <div class="api-deprecated">
    <h3>{{ 'Deprecated'|t }}</h3>
    {{ deprecated|safe_markup }}
  </div>
{% endif %}

{% if see|render|striptags|trim %}
  <h3>{{ 'See also'|t }}</h3>
  {{ see|safe_markup }}
{% endif %}

{% for link in call_links %}
  {{ link|safe_markup }}
{% endfor %}

<h3>{{ 'File'|t }}</h3>

{% if git_url is not empty %}
  <div class="git-link-wrapper">
    <a class="git-link" href="{{ git_url }}">{{ 'View on'|t }} {{ git_url_domain }}</a>
  </div>
{% endif %}

{{ defined }}

<details class="api-view-source">
  <summary>
    {{ 'View source'|t }}
  </summary>
  {{ code|safe_markup }}
</details>

{% if related_topics|render|striptags|trim %}
  <h3>{{ 'Related topics'|t }}</h3>
  {{ related_topics }}
{% endif %}

{{ objects }}

{{ comments }}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc