Skip to content
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
16 changes: 16 additions & 0 deletions drupal/logo-bar/components/company.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="company {{ modifier }}">
{% if company_url %}
<a href="{{ company_url }}" aria-label="{{ company_title }}" class="company__href">
{% else %}
<div href="{{ company_url }}" aria-label="{{ company_title }}" class="company__href">
{% endif %}
{% if company_image %}
<div href="{{ company_url }}" class="company__img_bg" style="background: url('{{ company_image }}') center no-repeat;background-size:contain;"></div>
<img src="{{ company_image }}" alt="{{ company_image_alt }}" class="company_details_img visually-hidden"/>
{% endif %}
{% if company_url %}
</a>
{% else %}
</div>
{% endif %}
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
langcode: en
status: true
dependencies:
config:
- field.field.node.company.repeat_link
- field.field.node.company.repeat_logo
- node.type.company
module:
- link
- media_library
- path
id: node.company.default
targetEntityType: node
bundle: company
mode: default
content:
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
repeat_link:
weight: 123
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
repeat_logo:
type: media_library_widget
weight: 122
settings:
media_types: { }
third_party_settings: { }
region: content
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 15
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 120
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 16
region: content
third_party_settings: { }
title:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.logo_bar.repeat_companies
- paragraphs.paragraphs_type.logo_bar
id: paragraph.logo_bar.default
targetEntityType: paragraph
bundle: logo_bar
mode: default
content:
repeat_companies:
weight: 0
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
langcode: en
status: true
dependencies:
config:
- field.field.node.company.repeat_link
- field.field.node.company.repeat_logo
- node.type.company
module:
- link
- user
id: node.company.default
targetEntityType: node
bundle: company
mode: default
content:
repeat_link:
weight: 103
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
region: content
repeat_logo:
type: entity_reference_entity_view
weight: 102
label: hidden
settings:
view_mode: default
link: false
third_party_settings: { }
region: content
links:
weight: 100
region: content
settings: { }
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.company.repeat_link
- field.field.node.company.repeat_logo
- node.type.company
module:
- user
id: node.company.teaser
targetEntityType: node
bundle: company
mode: teaser
content:
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
repeat_link: true
repeat_logo: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.logo_bar.repeat_companies
- paragraphs.paragraphs_type.logo_bar
id: paragraph.logo_bar.default
targetEntityType: paragraph
bundle: logo_bar
mode: default
content:
repeat_companies:
weight: 0
label: hidden
settings:
link: true
view_mode: default
third_party_settings: { }
type: entity_reference_entity_view
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.repeat_link
- node.type.company
module:
- link
id: node.company.repeat_link
field_name: repeat_link
entity_type: node
bundle: company
label: link
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
link_type: 17
title: 0
field_type: link
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: b99c2b43-923b-4f7a-90d0-fbe823ce966d
langcode: en
status: true
dependencies:
config:
- field.storage.node.repeat_logo
- media.type.image
- node.type.company
id: node.company.repeat_logo
field_name: repeat_logo
entity_type: node
bundle: company
label: logo
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
auto_create: true
auto_create_bundle: ''
field_type: entity_reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_paragraph_reference
- node.type.component_standard
- paragraphs.paragraphs_type.accordion_item
module:
- entity_reference_revisions
id: node.component_standard.field_paragraph_reference
field_name: field_paragraph_reference
entity_type: node
bundle: component_standard
label: 'Paragraph reference'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:paragraph'
handler_settings:
negate: 1
target_bundles:
accordion_item: accordion_item
target_bundles_drag_drop:
accordion:
weight: 3
enabled: false
accordion_item:
enabled: true
weight: 4
card_layout:
weight: 10
enabled: false
cta_section:
weight: 11
enabled: false
hero_layout:
weight: 12
enabled: false
image_text_feature:
weight: 13
enabled: false
logo_bar:
weight: 15
enabled: false
quote:
weight: 14
enabled: false
field_type: entity_reference_revisions
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.repeat_companies
- node.type.company
- paragraphs.paragraphs_type.logo_bar
id: paragraph.logo_bar.repeat_companies
field_name: repeat_companies
entity_type: paragraph
bundle: logo_bar
label: Companies
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
company: company
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
18 changes: 18 additions & 0 deletions drupal/logo-bar/config/field.storage.node.field_repeat_link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
module:
- link
- node
id: node.repeat_link
field_name: repeat_link
entity_type: node
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
19 changes: 19 additions & 0 deletions drupal/logo-bar/config/field.storage.node.field_repeat_logo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- media
- node
id: node.repeat_logo
field_name: repeat_logo
entity_type: node
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading