Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added update for empty behaviour upadte patch.
Renamed yml file.
- Loading branch information
1 parent
2277f1b
commit 0ff6119
Showing
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
views.view.content: | ||
expected_config: | ||
display: | ||
default: | ||
display_options: | ||
fields: | ||
moderation_state: | ||
empty: '' | ||
update_actions: | ||
change: | ||
display: | ||
default: | ||
display_options: | ||
fields: | ||
moderation_state: | ||
empty: 'N/A' |
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,20 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Install file for ezcontent_publish. | ||
*/ | ||
|
||
/** | ||
* Added empty result behaviour for moderation state. | ||
*/ | ||
function ezcontent_publish_update_8001() { | ||
/** @var \Drupal\update_helper\Updater $updateHelper */ | ||
$updateHelper = \Drupal::service('update_helper.updater'); | ||
|
||
// Execute configuration update definitions with logging of success. | ||
$updateHelper->executeUpdate('ezcontent_publish', 'ezcontent_publish_update_8001'); | ||
|
||
// Output logged messages to related channel of update execution. | ||
return $updateHelper->logger()->output(); | ||
} |