-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from City-of-Helsinki/hakuvahti
Hakuvahti Drupal Module
- Loading branch information
Showing
23 changed files
with
720 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
7 changes: 7 additions & 0 deletions
7
public/modules/custom/helfi_hakuvahti/helfi_hakuvahti.info.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 @@ | ||
name: helfi_hakuvahti | ||
type: module | ||
description: 'Drupal-integration for hakuvahti.' | ||
package: Custom | ||
core_version_requirement: ^10 | ||
'interface translation project': helfi_hakuvahti | ||
'interface translation server pattern': modules/custom/helfi_hakuvahti/translations/%language.po |
36 changes: 36 additions & 0 deletions
36
public/modules/custom/helfi_hakuvahti/helfi_hakuvahti.module
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,36 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Helfi_hakuvahti. | ||
* | ||
* Helfi_hakuvahti.module. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Implements hook_theme(). | ||
*/ | ||
function helfi_hakuvahti_theme() { | ||
return [ | ||
'hakuvahti_form' => [ | ||
'variables' => [ | ||
'title' => NULL, | ||
'message' => NULL, | ||
'button_text' => NULL, | ||
'action_url' => NULL, | ||
'id' => NULL, | ||
'form_id' => NULL, | ||
], | ||
], | ||
'hakuvahti_confirmation' => [ | ||
'variables' => [ | ||
'title' => NULL, | ||
'message' => NULL, | ||
'link_text' => NULL, | ||
'link_url' => NULL, | ||
], | ||
], | ||
]; | ||
} |
21 changes: 21 additions & 0 deletions
21
public/modules/custom/helfi_hakuvahti/helfi_hakuvahti.routing.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,21 @@ | ||
helfi_hakuvahti.subscribe: | ||
path: '/hakuvahti/subscribe' | ||
defaults: | ||
_title: 'Subscribe saved search' | ||
_controller: '\Drupal\helfi_hakuvahti\Controller\HelfiHakuvahtiSubscribeController::post' | ||
requirements: | ||
_permission: 'access content' | ||
helfi_hakuvahti.confirm: | ||
path: '/hakuvahti/confirm' | ||
defaults: | ||
_title: 'Confirm saved search' | ||
_controller: '\Drupal\helfi_hakuvahti\Controller\HelfiHakuvahtiController::confirm' | ||
requirements: | ||
_permission: 'access content' | ||
helfi_hakuvahti.unsubscribe: | ||
path: '/hakuvahti/unsubscribe' | ||
defaults: | ||
_title: 'Are you sure you wish to delete the saved search?' | ||
_controller: '\Drupal\helfi_hakuvahti\Controller\HelfiHakuvahtiController::unsubscribe' | ||
requirements: | ||
_permission: 'access content' |
Oops, something went wrong.