Commit f27631cd authored by Salim Qazizada's avatar Salim Qazizada Committed by Shibin Das
Browse files

Issue #3301502: covering remained entities and fields

parent 9f521771
Loading
Loading
Loading
Loading
+1 −1
Changes for inspector_theme.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,4 +14,4 @@ regions:
  sidebar_second: Sidebar Second

libraries:
  - inspector/debug
  - inspector_theme/debug
+47 −0
Changes for templates/block/block.html.twig: 47 added lines, 0 removed lines.
Original line number Diff line number Diff line
{#
/**
 * @file
 * Theme override to display a block.
 *
 * Available variables:
 * - plugin_id: The ID of the block implementation.
 * - label: The configured label of the block if visible.
 * - configuration: A list of the block's configuration values.
 *   - label: The configured label for the block.
 *   - label_display: The display settings for the label.
 *   - provider: The module or other provider that provided this block plugin.
 *   - Block plugin specific settings will also be stored here.
 * - content: The content of this block.
 * - attributes: array of HTML attributes populated by modules, intended to
 *   be added to the main container tag of this template.
 *   - id: A valid HTML ID and guaranteed unique.
 * - title_attributes: Same as attributes, except applied to the main title
 *   tag that appears in the template.
 * - title_prefix: Additional output populated by modules, intended to be
 *   displayed in front of the main title tag that appears in the template.
 * - title_suffix: Additional output populated by modules, intended to be
 *   displayed after the main title tag that appears in the template.
 *
 * @see template_preprocess_block()
 */
#}

{% embed "@inspector_theme/utils/debug-entity.twig" %}
  {% block label %}
    <div class="name">Block : ({{ configuration.provider }})</div>
    <div class="type">Plugin ID : ({{ plugin_id }})</div>
  {% endblock %}
  {% block content %}
    {%
      set classes = [
      'block',
      'block-' ~ configuration.provider|clean_class,
      'block-' ~ plugin_id|clean_class,
    ]
    %}
    <div{{ attributes.addClass(classes) }}>
      {{ content }}
    </div>
  {% endblock %}
  {% block vars %}{% endblock %}
{% endembed %}
+33 −0
Changes for templates/content/media.html.twig: 33 added lines, 0 removed lines.
Original line number Diff line number Diff line
{#
/**
 * @file
 * Theme override to display a media item.
 *
 * Available variables:
 * - name: Name of the media.
 * - content: Media content.
 *
 * @see template_preprocess_media()
 *
 * @ingroup themeable
 */
#}

{% embed "@inspector_theme/utils/debug-entity.twig" %}
  {% block label %}
    <div class="name">Media : ({{ name }})</div>
    <div class="type">View Mode : ({{ view_mode }})</div>
  {% endblock %}
  {% block content %}
    {% set classes = [
      'media',
      'media--type-' ~ media.bundle()|clean_class,
      not media.isPublished() ? 'media--unpublished',
      view_mode ? 'media--view-mode-' ~ view_mode|clean_class,
    ] %}
    <article{{ attributes.addClass(classes) }}>
      {{ content }}
    </article>
  {% endblock %}
  {% block vars %}{% endblock %}
{% endembed %}
+36 −0
Changes for templates/content/taxonomy-term.html.twig: 36 added lines, 0 removed lines.
Original line number Diff line number Diff line
{#
/**
 * @file
 * Theme override to display a taxonomy term.
 *
 * Available variables:
 * - url: URL of the current term.
 * - name: (optional) Name of the current term.
 * - content: Items for the content of the term (fields and description).
 *   Use 'content' to print them all, or print a subset such as
 *   'content.description'. Use the following code to exclude the
 *   printing of a given child element:
 *   @code
 *   {{ content|without('description') }}
 *   @endcode
 * - attributes: HTML attributes for the wrapper.
 * - page: Flag for the full page state.
 * - term: The taxonomy term entity, including:
 *   - id: The ID of the taxonomy term.
 *   - bundle: Machine name of the current vocabulary.
 * - view_mode: View mode, e.g. 'full', 'teaser', etc.
 *
 * @see template_preprocess_taxonomy_term()
 */
#}

{% embed "@inspector_theme/utils/debug-entity.twig" %}
  {% block label %}
    <div class="name">Taxonomy Term : ({{ term.bundle }})</div>
    <div class="type">View Mode : ({{ view_mode }})</div>
  {% endblock %}
  {% block content %}
    {{ content }}
  {% endblock %}
  {% block vars %}{% endblock %}
{% endembed %}
Loading