Code
{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
]
%}
{% block paragraph %}
{% if content.field_block_reference.0 is not empty %}
{{ content.field_block_reference }}
{% endif %}
{% endblock paragraph %}
Fields
| Label | Machine name | Field type | Character Limit | Required |
|---|---|---|---|---|
| Block Reference | field_block_reference | Entity reference | N/A | Yes |
Use Case
Block Reference allows the content author to place custom blocks on the page, this is useful for when a custom HTML component or embed code is needed.
An example of this is that we place all of our logos in custom blocks so they can be placed into regions or on a page via block reference.
NOTE: The custom block needs to be placed into the Block Reference region before it can be used via the reference.
Component Options
There are no options for this component.