Generate case entity. (Called CaseEntity because "Case" is reserved word)

This commit is contained in:
naomi
2018-04-12 15:32:24 +02:00
parent 6746b986db
commit c9cf33ac19
25 changed files with 1028 additions and 0 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_case_entity_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 case_entity.html.twig
* Default theme implementation to present Case entity data.
*
* This template is used when viewing Case entity 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_case_entity()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('case_entity') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>