-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the in_app_include and in_app_exclude options
- Loading branch information
1 parent
8bb050d
commit 10312ae
Showing
6 changed files
with
82 additions
and
4 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
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
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,24 @@ | ||
<?php | ||
|
||
/** | ||
* Set default values for the in_app_exclude option | ||
*/ | ||
function wmsentry_update_8001(): void | ||
{ | ||
$config = \Drupal::configFactory() | ||
->getEditable('wmsentry.settings'); | ||
|
||
if ($config->get('in_app_exclude')) { | ||
return; | ||
} | ||
|
||
$config->set('in_app_exclude', [ | ||
'../vendor', | ||
'core', | ||
'modules/contrib', | ||
'themes/contrib', | ||
'profiles/contrib', | ||
'libraries', | ||
]); | ||
$config->save(); | ||
} |