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 and tested a banner block. #42

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
25 changes: 25 additions & 0 deletions config/sync/block.block.testbannerblock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 49215957-f6b0-4275-b43f-9d52c5c4be0b
langcode: en
status: true
dependencies:
content:
- 'block_content:banner_block:09e54aea-53af-498e-b50a-71a9ed1f7eee'
module:
- block_content
theme:
- bartik
id: testbannerblock
theme: bartik
region: featured_top
weight: 0
provider: null
plugin: 'block_content:09e54aea-53af-498e-b50a-71a9ed1f7eee'
settings:
id: 'block_content:09e54aea-53af-498e-b50a-71a9ed1f7eee'
label: 'Test Banner Block'
provider: block_content
label_display: '0'
status: true
info: ''
view_mode: full
visibility: { }
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: d810ab1d-93d4-4a53-b5cf-2670006dc930
langcode: en
status: true
dependencies: { }
id: banner_block
label: 'Banner Block'
revision: 0
description: 'Large banner with a title and link.'
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
uuid: 3d2f964f-0e73-4e8f-b722-ae1f8a655655
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.field.block_content.banner_block.field_background_image
- field.field.block_content.banner_block.field_button
- field.field.block_content.banner_block.field_title
- image.style.thumbnail
module:
- image
- link
- text
id: block_content.banner_block.default
targetEntityType: block_content
bundle: banner_block
mode: default
content:
field_background_image:
weight: 3
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
type: image_image
region: content
field_button:
weight: 1
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
field_title:
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: text_textfield
region: content
info:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
uuid: f217f4d8-5da5-489d-b2e2-d70952b2c577
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.field.block_content.banner_block.field_background_image
- field.field.block_content.banner_block.field_button
- field.field.block_content.banner_block.field_title
module:
- image
- link
- text
id: block_content.banner_block.default
targetEntityType: block_content
bundle: banner_block
mode: default
content:
field_background_image:
weight: 2
label: above
settings:
image_style: ''
image_link: ''
third_party_settings: { }
type: image
region: content
field_button:
weight: 1
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
region: content
field_title:
weight: 0
label: hidden
settings: { }
third_party_settings: { }
type: text_default
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
uuid: c5512a45-d0d0-4015-820e-41417369be7d
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.field_background_image
module:
- image
id: block_content.banner_block.field_background_image
field_name: field_background_image
entity_type: block_content
bundle: banner_block
label: 'Background Image'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_extensions: 'png gif jpg jpeg'
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
max_resolution: ''
min_resolution: ''
default_image:
uuid: null
alt: ''
title: ''
width: null
height: null
file_directory: '[date:custom:Y]-[date:custom:m]'
max_filesize: ''
handler: 'default:file'
handler_settings: { }
field_type: image
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 1a8ed210-d7fb-4763-b500-e98c934a5c65
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.field_button
module:
- link
id: block_content.banner_block.field_button
field_name: field_button
entity_type: block_content
bundle: banner_block
label: Button
description: 'Contact me button.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
link_type: 17
title: 2
field_type: link
24 changes: 24 additions & 0 deletions config/sync/field.field.block_content.banner_block.field_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: a0cd902c-921f-464e-bd73-78ca04973135
langcode: en
status: true
dependencies:
config:
- block_content.type.banner_block
- field.storage.block_content.field_title
module:
- text
id: block_content.banner_block.field_title
field_name: field_title
entity_type: block_content
bundle: banner_block
label: Title
description: 'Banner title.'
required: true
translatable: false
default_value:
-
value: 'Call to Action; Hire me!'
format: full_html
default_value_callback: ''
settings: { }
field_type: text
30 changes: 30 additions & 0 deletions config/sync/field.storage.block_content.field_background_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
uuid: 61fba826-bad3-43a3-a6bb-46639a217c42
langcode: en
status: true
dependencies:
module:
- block_content
- file
- image
id: block_content.field_background_image
field_name: field_background_image
entity_type: block_content
type: image
settings:
uri_scheme: public
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
target_type: file
display_field: false
display_default: false
module: image
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
19 changes: 19 additions & 0 deletions config/sync/field.storage.block_content.field_button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 16210927-6ba9-40cd-b114-5d51d6e1a5c6
langcode: en
status: true
dependencies:
module:
- block_content
- link
id: block_content.field_button
field_name: field_button
entity_type: block_content
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
20 changes: 20 additions & 0 deletions config/sync/field.storage.block_content.field_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 48b01115-35fa-44ad-b60d-631ac3c9a2b9
langcode: en
status: true
dependencies:
module:
- block_content
- text
id: block_content.field_title
field_name: field_title
entity_type: block_content
type: text
settings:
max_length: 100
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false