-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#474: add field_intro to region & simple page meta
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Update hooks for wri_region. | ||
*/ | ||
|
||
/** | ||
* Update the metatags to display field_intro for description. | ||
*/ | ||
function wri_region_update_10001() { | ||
\Drupal::service('distro_helper.updates')->updateConfig('metatag.metatag_defaults.node__region', [ | ||
'tags#description', | ||
], 'wri_region'); | ||
|
||
$message = 'Add field_intro to metatags description'; | ||
return $message; | ||
} |
7 changes: 7 additions & 0 deletions
7
modules/wri_simple_page/config/install/metatag.metatag_defaults.node__simple_page.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: node__simple_page | ||
label: 'Content: Simple Page' | ||
tags: | ||
description: '[node:field_intro]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters