Skip to content
Snippets Groups Projects
Commit 6f38193b authored by Adrian Lorenc's avatar Adrian Lorenc
Browse files

ISAICP-9575: Remove old aproach - block.

parent 78e0d305
No related branches found
No related tags found
1 merge request!215Release 2.3.2
uuid: 1568adf7-9ebe-429f-84eb-3cf864207b07
langcode: en
status: true
dependencies:
config:
- simple_block.simple_block.anonymous_comment_links
module:
- node
- simple_block
- user
theme:
- ventuno
id: ventuno_anonymous_comment_links
theme: ventuno
region: content
weight: -8
provider: null
plugin: 'simple_block:anonymous_comment_links'
settings:
id: 'simple_block:anonymous_comment_links'
label: 'Anonymous comment links'
label_display: '0'
provider: simple_block
visibility:
user_role:
id: user_role
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
roles:
anonymous: anonymous
'entity_bundle:node':
id: 'entity_bundle:node'
negate: false
context_mapping:
node: '@node.node_route_context:node'
bundles:
discussion: discussion
document: document
event: event
news: news
uuid: 04adf1f1-d724-4489-8d03-46716e4e3c50
langcode: en
status: true
dependencies:
config:
- filter.format.content_editor
id: anonymous_comment_links
title: 'Anonymous comment links'
content:
value: '<a href="[site:url]caslogin">Login</a> or <a href="[site:url]user/register">create an account</a> to comment.'
format: content_editor
{#
/**
* @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()
*/
#}
{%
set classes = [
'mt-3',
'bg-light',
'p-3',
'text-center',
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment