Gennerated Profile entity

This commit is contained in:
naomi
2018-04-05 20:05:00 +02:00
parent e933c3ae23
commit 7ac39fc385
31 changed files with 1974 additions and 4 deletions

View File

@ -0,0 +1,23 @@
{#
/**
* @file
* Default theme implementation to present a list of custom content entity types/bundles.
*
* Available variables:
* - types: A collection of all the available custom entity types/bundles.
* Each type/bundle contains the following:
* - link: A link to add a content entity of this type.
* - description: A description of this content entity types/bundle.
*
* @see template_preprocess_profile_content_add_list()
*
* @ingroup themeable
*/
#}
{% spaceless %}
<dl>
{% for type in types %}
<dt>{{ type.link }}</dt>
{% endfor %}
</dl>
{% endspaceless %}

View File

@ -0,0 +1,22 @@
{#
/**
* @file profile.html.twig
* Default theme implementation to present Profile data.
*
* This template is used when viewing Profile pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_profile()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('profile') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>