Skip to content

Commit fc09faf

Browse files
committed
changed 'band' to 'awesome'
1 parent ee60376 commit fc09faf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/pattern_builder_library.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ title: Pattern Builder PHP Library
2626

2727
### Rendering a Schema
2828

29-
The following details how to render an example JSON schema named "band".
29+
The following details how to render an example JSON schema named "awesome".
3030

3131
The Drupal Pattern Builder module automatically does all this through Drupal field storage, field widgets, and field formatters.
3232

33-
#### Example JSON Schema: band
33+
#### Example JSON Schema: awesome
3434

3535
```javascript
3636
{
3737
"$schema": "http://json-schema.org/draft-04/schema#",
38-
"title": "Band",
39-
"description": "A Band pattern",
38+
"title": "Awesome",
39+
"description": "An awesome pattern to highlight content.",
4040
"type": "object",
4141
"properties": {
4242
"name": {
4343
"type": "string",
44-
"enum": ["band"],
44+
"enum": ["awesome"],
4545
"options": {
4646
"hidden": true
4747
}
@@ -78,7 +78,7 @@ The Drupal Pattern Builder module automatically does all this through Drupal fie
7878
"items": {
7979
"title": "Header Item",
8080
"oneOf": [
81-
{"$ref": "band_header.json"}
81+
{"$ref": "awesome_header.json"}
8282
]
8383
}
8484
}
@@ -134,23 +134,23 @@ The Drupal Pattern Builder module automatically does all this through Drupal fie
134134
#### Set Schema Values
135135

136136
```php
137-
// Load the band header schema and set values.
138-
$band_header = $schema_factory->load('band_header')
139-
->set('title', 'My Awesome Band')
137+
// Load the awesome header schema and set values.
138+
$awesome_header = $schema_factory->load('awesome_header')
139+
->set('title', 'My Awesome Content')
140140
->set('headline', 'New content, new markup, new everything!');
141141

142142
// Create a card schema and set values.
143143
$card = $schema_factory->load('card')
144-
->set('title', 'Card 1')
144+
->set('title', 'Best Content Ever')
145145
->set('background', array('color' => 'white'))
146146
->set('image', array('src' => 'http://example.com/cool-image.jpg'));
147147

148-
// Load the band schema and set values.
149-
$band = $schema_factory->load('band')
148+
// Load the awesome pattern schema and set values.
149+
$awesome = $schema_factory->load('awesome')
150150
->set('background', array('color' => 'black'))
151151
->set('header', array(
152152
'theme' => 'dark',
153-
'content' => $band_header
153+
'content' => $awesome_header
154154
))
155155
->set('content', $card);
156156
```
@@ -161,6 +161,6 @@ The Drupal Pattern Builder module automatically does all this through Drupal fie
161161

162162

163163
```php
164-
// Render the entire band - all the nested schemas and their TWIG templates.
165-
$band_markup = $band->render();
164+
// Render the entire pattern - all the nested schemas and their TWIG templates.
165+
$awesome_markup = $awesome->render();
166166
```

0 commit comments

Comments
 (0)