{# /** * @file * Template implementation for the type_tray_teaser theme hook. * * Available variables: * - content_type_entity: The entity type object. * - content_type_link: A link render array for the node/add/[type] page * - nodes_by_type_link: A link render array for the content listing page * - thumbnail_url: The URL of the thumbnail * - thumbnail_alt: The ALT text to be used for the thumbnail * - icon_url: The URL of the icon * - icon_alt: The ALT text to be used for the icon * - short_description: The default description text string. * - extended_description: The extended description (formatted), to be used * when the layout is "list". * - layout: The layout being used: either "grid" (default) or "list". * - favorite_link_text: The text to use in the Add to Favorites link. * - favorite_link_url: The URL to use in the Add to Favorites link. * - favorite_link_action: The action of the favorite link (add/remove). */ #}
{% if favorite_link_text and favorite_link_url and favorite_link_action %}
{% set aria_value = favorite_link_action == 'add' ? 'false' : 'true' %} {{ favorite_link_text }}
{% endif %}
{% if icon_url %} {{ icon_alt }} {% endif %}

{{ content_type_link }}

{{ short_description }}
{% if layout == 'list' %}
{{ extended_description }}
{% endif %} {% if nodes_by_type_link %} {% endif %}
{% if layout == 'list' %}
{% if thumbnail_url %} {{ thumbnail_alt }} {% endif %}
{% endif %}