-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.yml
50 lines (50 loc) · 1.42 KB
/
recipe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Anu LMS Front end theme'
description: 'Sets up Olivero theme for using with ANU Learning Management System.'
type: 'Site'
recipes:
- anu_lms_base
install:
- anu_lms_olivero
input:
# The token is used to support both, 'olivero' and 'drupal_cms_olivero' themes.
default_theme:
data_type: string
description: 'The front end theme. Used internally to determine block machine names.'
constraints:
NotBlank: []
default:
source: config
config: ['system.theme', 'default']
config:
import:
anu_lms_olivero: '*'
strict: false
actions:
# Hiding unnecessary blocks on Anu LMS content pages.
block.block.${default_theme}_breadcrumbs:
simpleConfigUpdate:
visibility:
anu_lms_pages:
id: anu_lms_pages
show: 1
negate: 1
context_mapping:
node: '@node.node_route_context:node'
block.block.${default_theme}_page_title:
simpleConfigUpdate:
visibility:
anu_lms_pages:
id: anu_lms_pages
show: 1
negate: 1
context_mapping:
node: '@node.node_route_context:node'
block.block.${default_theme}_primary_local_tasks:
simpleConfigUpdate:
visibility:
anu_lms_pages:
id: anu_lms_pages
show: 1
negate: 1
context_mapping:
node: '@node.node_route_context:node'