-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3251169 by Owens-D: (v 3.2) Remove Droopler dependency on core…
… Search module --author="lukasz.tyc <61900-lukasz.tyc@users.noreply.drupalcode.org>" Issue #3251169 by Owens-D: (v 3.2) Remove Droopler dependency on core Search module
- Loading branch information
1 parent
47ab178
commit fa1306b
Showing
10 changed files
with
26 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ version: DROOPLER_VERSION | |
package: Droopler Common | ||
|
||
dependencies: | ||
- droopler:d_demo | ||
- droopler:d_product |
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 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Update function for d_search. | ||
*/ | ||
declare(strict_types = 1); | ||
use Drupal\user\RoleInterface; | ||
/** | ||
* Implements hook_install(). | ||
*/ | ||
function d_search_install(): void { | ||
if (\Drupal::moduleHandler()->moduleExists('search')) { | ||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['search content']); | ||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['search content']); | ||
} | ||
} |