Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1640: Created Banner Block #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/sync/block.block.bartik_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: bartik_content
theme: bartik
region: content
weight: -3
weight: -4
provider: null
plugin: system_main_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.bartik_help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: bartik_help
theme: bartik
region: content
weight: -5
weight: -6
provider: null
plugin: help_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.bartik_local_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: bartik_local_actions
theme: bartik
region: content
weight: -4
weight: -5
provider: null
plugin: local_actions_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.bartik_local_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: bartik_local_tasks
theme: bartik
region: content
weight: -6
weight: -7
provider: null
plugin: local_tasks_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.bartik_page_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: bartik_page_title
theme: bartik
region: content
weight: -7
weight: -8
provider: null
plugin: page_title_block
settings:
Expand Down
25 changes: 25 additions & 0 deletions config/sync/block.block.shortmessage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 869b2cd7-227d-4c81-a847-9b2b2653d8e3
langcode: en
status: true
dependencies:
content:
- 'block_content:banner_block:588fa5ce-35e0-4cd0-9b12-c0f9aa411291'
module:
- block_content
theme:
- bartik
id: shortmessage
theme: bartik
region: content
weight: 0
provider: null
plugin: 'block_content:588fa5ce-35e0-4cd0-9b12-c0f9aa411291'
settings:
id: 'block_content:588fa5ce-35e0-4cd0-9b12-c0f9aa411291'
label: 'Short Message and Link'
provider: block_content
label_display: '0'
status: true
info: ''
view_mode: full
visibility: { }
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
id: views_block__articles_view_block_1
theme: bartik
region: content
weight: 0
weight: -3
provider: null
plugin: 'views_block:articles_view-block_1'
settings:
Expand Down
8 changes: 8 additions & 0 deletions config/sync/block_content.type.banner_block.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: ea2c2f22-9270-4d4c-9685-84fa216ade54
langcode: en
status: true
dependencies: { }
id: banner_block
label: 'Banner Block'
revision: 0
description: 'Banner block created'
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
uuid: 3febdf8f-6e26-4710-9ba0-f3639e7fb7c9
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.field.block_content.banner_block.field_contact_me
- field.field.block_content.banner_block.field_message
- field.field.block_content.banner_block.layout_builder__layout
module:
- link
- text
id: block_content.banner_block.default
targetEntityType: block_content
bundle: banner_block
mode: default
content:
field_contact_me:
weight: 2
settings:
placeholder_url: www.google.com
placeholder_title: 'Contact Me'
third_party_settings: { }
type: link_default
region: content
field_message:
weight: 1
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: text_textfield
region: content
info:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: 'Call To Action: Hire Me!'
third_party_settings: { }
hidden:
layout_builder__layout: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
uuid: ef1b2de0-d0af-4054-bc13-e450ac0d6a0f
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.field.block_content.banner_block.field_contact_me
- field.field.block_content.banner_block.field_message
- field.field.block_content.banner_block.layout_builder__layout
module:
- layout_builder
- layout_discovery
- link
- text
third_party_settings:
layout_builder:
sections:
-
layout_id: layout_onecol
layout_settings: { }
components:
aed00af2-c910-4152-9ff8-14f146672774:
uuid: aed00af2-c910-4152-9ff8-14f146672774
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:block_content:banner_block:field_message'
formatter:
label: above
settings: { }
third_party_settings: { }
type: text_default
additional: { }
weight: 2
edc0e728-c351-43fc-b80d-7b54e5ff4f3e:
uuid: edc0e728-c351-43fc-b80d-7b54e5ff4f3e
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:block_content:banner_block:field_contact_me'
formatter:
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
additional: { }
weight: 3
allow_custom: true
enabled: true
id: block_content.banner_block.default
targetEntityType: block_content
bundle: banner_block
mode: default
content:
field_contact_me:
weight: 1
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
region: content
field_message:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
hidden:
layout_builder__layout: true
37 changes: 37 additions & 0 deletions config/sync/core.entity_view_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,43 @@ dependencies:
- field.field.node.page.body
- node.type.page
module:
- layout_builder
- text
- user
third_party_settings:
layout_builder:
sections:
-
layout_id: layout_onecol
layout_settings: { }
components:
649eeb1f-7870-4f72-accd-28e654dc9e2a:
uuid: 649eeb1f-7870-4f72-accd-28e654dc9e2a
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:node:page:body'
formatter:
label: hidden
type: text_default
settings: { }
third_party_settings: { }
additional: { }
weight: 0
1b7c3baa-196b-4c1a-bdfd-cf5bbb94a42d:
uuid: 1b7c3baa-196b-4c1a-bdfd-cf5bbb94a42d
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'extra_field_block:node:page:links'
additional: { }
weight: 1
allow_custom: true
enabled: true
_core:
default_config_hash: g1S3_GLaxq4l3I9RIca5Mlz02MxI2KmOquZpHw59akM
id: node.page.default
Expand All @@ -25,4 +60,6 @@ content:
links:
weight: 101
region: content
settings: { }
third_party_settings: { }
hidden: { }
2 changes: 2 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module:
help: 0
history: 0
image: 0
layout_builder: 0
layout_discovery: 0
link: 0
menu_ui: 0
node: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 08ae3346-a2f5-4f2a-902b-cf9fce5f33e1
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.field_contact_me
module:
- link
id: block_content.banner_block.field_contact_me
field_name: field_contact_me
entity_type: block_content
bundle: banner_block
label: Button
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
link_type: 17
title: 1
field_type: link
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 067fc8bf-fa3f-4726-9b95-71c09ca593ea
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.field_message
module:
- text
id: block_content.banner_block.field_message
field_name: field_message
entity_type: block_content
bundle: banner_block
label: Message
description: ''
required: false
translatable: false
default_value:
-
value: '<p>Call To Action; Hire Me!</p>'
format: basic_html
default_value_callback: ''
settings: { }
field_type: text
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 69611596-d5cb-48b5-aba1-20abe23641ca
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.layout_builder__layout
module:
- layout_builder
id: block_content.banner_block.layout_builder__layout
field_name: layout_builder__layout
entity_type: block_content
bundle: banner_block
label: Layout
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: layout_section
21 changes: 21 additions & 0 deletions config/sync/field.field.node.page.layout_builder__layout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 919f31e3-59d5-415f-8afa-c5be986bc01b
langcode: en
status: true
dependencies:
config:
- field.storage.node.layout_builder__layout
- node.type.page
module:
- layout_builder
id: node.page.layout_builder__layout
field_name: layout_builder__layout
entity_type: node
bundle: page
label: Layout
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: layout_section
19 changes: 19 additions & 0 deletions config/sync/field.storage.block_content.field_contact_me.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 86aa73a0-7f4b-464f-9562-efca4e346db2
langcode: en
status: true
dependencies:
module:
- block_content
- link
id: block_content.field_contact_me
field_name: field_contact_me
entity_type: block_content
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading