bcubed-8.x-1.0-beta5/modules/bcubed_examples/config/install/bcubed.condition_set.example_highlight_element.yml
modules/bcubed_examples/config/install/bcubed.condition_set.example_highlight_element.yml
langcode: en
status: false
dependencies:
module:
- bcubed_cookie
- bcubed_interaction
id: example_highlight_element
label: '[Example] Highlight Element'
description: 'Highlights the search form, once per user session'
weight: 12
events:
-
id: page_load
data: { }
conditions:
-
id: check_cookie
data:
cookiename: searchHighlighted
operator: notequal
cookievalue: 'true'
notfoundbehavior: 0
actions:
-
id: highlight_element
data:
selector: '#block-bartik-search'
message: '<h1>Looking for something?</h1><h2>Try our super fancy search feature!</h2>'
dismiss_text: 'No Thanks, I''ll Find It Myself'
second_button_text: ''
dismiss_overlay_click: true
wait: 3000
-
id: write_cookie
data:
cookiename: searchHighlighted
cookievalue: 'true'
expires: 0
