Skip to content

Commit 842912a

Browse files
committed
Cleaned up
1 parent 51332b7 commit 842912a

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ setup() {
8787

8888
composer --no-plugins config extra.drupal-lenient.allow-all --json true
8989
# composer --no-plugins config extra.drupal-lenient.allowed-list --json '[ "drupal/coc_forms_auto_export", "drupal/webform_node_element" ]'
90-
composer require mglaman/composer-drupal-lenient --with-all-dependencies
90+
composer require mglaman/composer-drupal-lenient:^1.0 --with-all-dependencies
9191

9292
# --------------------------------------------------------------------------------------------------------------------
9393
# We need to install dev requirements from our module, so we use

src/Helper/FordelingskomponentHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,8 @@ public function renderXml(
350350
/**
351351
* Build files for a distribution object.
352352
*
353-
* @return \Drupal\file\Entity\FileGroups
353+
* @return array<string, array<int, array{sftp_filename: string, file: \Drupal\file\FileInterface}>>
354354
* The file groups.
355-
*
356-
* @phpstan-import-type FileGroups from DistributionFormular
357355
*/
358356
public function buildFileGroups(HandlerSettings $handlerSettings, WebformSubmissionInterface $submission): array {
359357
$groups = [];

src/Plugin/WebformHandler/WebformHandlerSF2900.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public function getSummary() {
441441

442442
$items = [];
443443

444-
if (TRUE || $settings->distributionContext->kleEmne) {
444+
if ($settings->distributionContext->kleEmne) {
445445
$items[] = Link::createFromRoute(
446446
$this->t('Show routing info'),
447447
'os2forms_fordelingskomponent.routing_info', [

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
{% endif %}
5858
</div>
5959
<div class="edit-handler">
60-
<a href="{{ path('entity.webform.handler.edit_form', {webform: webform.id, webform_handler: handler.handlerId}) }}">{{ 'Edit handler %handler'|trans({'%handler': handler.label}) }}</a>
60+
<a href="{{ path('entity.webform.handler.edit_form', {webform: webform.id, webform_handler: handler.handlerId, destination: path('<current>')}) }}">{{ 'Edit handler %handler'|trans({'%handler': handler.label}) }}</a>
6161
</div>
6262
<div class="return">
6363
<a href="{{ path('entity.webform.handlers', {webform: webform.id, webform_handler: handler.handlerId}) }}">{{ 'Back to webform handlers'|trans({'%handler': handler.label}) }}</a>

0 commit comments

Comments
 (0)