Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test execution of deploy hooks inside a module with _deploy in the name.
Test for #5216
- Loading branch information
Showing
3 changed files
with
40 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,17 @@ | ||
<?php | ||
|
||
/** | ||
* This is a NAME.deploy.php file. It contains "deploy" functions. These are | ||
* one-time functions that run *after* config is imported during a deployment. | ||
* These are a higher level alternative to hook_update_n and hook_post_update_NAME | ||
* functions. See https://www.drush.org/latest/deploycommand/#authoring-update-functions | ||
* for a detailed comparison. | ||
*/ | ||
|
||
/** | ||
* Deploy hook in module containing _deploy. | ||
*/ | ||
function woot_deploy_deploy_function() | ||
{ | ||
return 'This is the update message from ' . __FUNCTION__; | ||
} |
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,5 @@ | ||
name: Woot Deploy | ||
type: module | ||
description: Deploys Mightily. | ||
core_version_requirement: ^9 || ^10 | ||
package: Other |
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