diff --git a/.platform/schema b/.platform/schema index d8263ee9..e440e5c8 100644 --- a/.platform/schema +++ b/.platform/schema @@ -1 +1 @@ -2 \ No newline at end of file +3 \ No newline at end of file diff --git a/composer.json b/composer.json index 83b6127e..2ff381ab 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,12 @@ "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "drupal/coder": "^8.3", "drupal/core-dev": "^9.1", + "jangregor/phpstan-prophecy": "^1.0", + "mglaman/phpstan-drupal": "^1.2", "phpspec/prophecy-phpunit": "^2", + "phpstan/extension-installer": "^1.3", + "phpstan/phpstan": "^1.10", + "phpstan/phpstan-deprecation-rules": "^1.1", "phpunit/phpunit": "^9.6", "weitzman/drupal-test-traits": "^2.1" }, @@ -44,7 +49,8 @@ "composer/installers": true, "cweagans/composer-patches": true, "drupal/core-composer-scaffold": true, - "php-http/discovery": false + "php-http/discovery": false, + "phpstan/extension-installer": true }, "audit": { "abandoned": "report" diff --git a/composer.lock b/composer.lock index c2df864e..94dbd874 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e82aed68b0fec0f307b7fcca1321cecd", + "content-hash": "a0b38e8091af8f77ea1abfd4fd4cddf4", "packages": [ { "name": "asm89/stack-cors", @@ -1789,17 +1789,17 @@ }, { "name": "drupal/config_filter", - "version": "2.4.0", + "version": "2.5.0", "source": { "type": "git", "url": "https://git.drupalcode.org/project/config_filter.git", - "reference": "8.x-2.4" + "reference": "8.x-2.5" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/config_filter-8.x-2.4.zip", - "reference": "8.x-2.4", - "shasum": "dcf442f228dafd6bbac8948db1d51e3f1ca1d0c7" + "url": "https://ftp.drupal.org/files/projects/config_filter-8.x-2.5.zip", + "reference": "8.x-2.5", + "shasum": "a509ec432b0560fbba853b52e74d71cede5f6bdf" }, "require": { "drupal/core": "^8.8 || ^9 || ^10" @@ -1813,8 +1813,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-2.4", - "datestamp": "1656936801", + "version": "8.x-2.5", + "datestamp": "1698096457", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -3751,16 +3751,16 @@ }, { "name": "drupal/hdbt", - "version": "5.6.19", + "version": "5.6.23", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-hdbt.git", - "reference": "9adca244e8a3bb0e0b61e991ecda0c0cb08b6385" + "reference": "e3d59c7b07f051da0a2f9d3cc0708137c5d72264" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/9adca244e8a3bb0e0b61e991ecda0c0cb08b6385", - "reference": "9adca244e8a3bb0e0b61e991ecda0c0cb08b6385", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/e3d59c7b07f051da0a2f9d3cc0708137c5d72264", + "reference": "e3d59c7b07f051da0a2f9d3cc0708137c5d72264", "shasum": "" }, "require": { @@ -3778,10 +3778,10 @@ "Drupal" ], "support": { - "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/5.6.19", + "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/5.6.23", "issues": "https://github.com/City-of-Helsinki/drupal-hdbt/issues" }, - "time": "2023-10-19T07:27:34+00:00" + "time": "2023-10-24T11:50:11+00:00" }, { "name": "drupal/hdbt_admin", @@ -3955,12 +3955,12 @@ "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-tools.git", - "reference": "4b78f15679d99b14dec7a62e593c2c8001f15cfa" + "reference": "3f74602477470e7220c12e0304d291f2504ad2ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/4b78f15679d99b14dec7a62e593c2c8001f15cfa", - "reference": "4b78f15679d99b14dec7a62e593c2c8001f15cfa", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/3f74602477470e7220c12e0304d291f2504ad2ba", + "reference": "3f74602477470e7220c12e0304d291f2504ad2ba", "shasum": "" }, "require": { @@ -3998,20 +3998,20 @@ "source": "https://github.com/City-of-Helsinki/drupal-tools/tree/main", "issues": "https://github.com/City-of-Helsinki/drupal-tools/issues" }, - "time": "2023-10-16T07:36:56+00:00" + "time": "2023-10-25T07:38:01+00:00" }, { "name": "drupal/helfi_navigation", - "version": "2.1.3", + "version": "2.1.4", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-module-helfi-navigation.git", - "reference": "e08ff75ed78ab66622662c3914abb55ba9ccf35f" + "reference": "a10ae58499ac50c2d4b34773c85653c0256a2e61" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-navigation/zipball/e08ff75ed78ab66622662c3914abb55ba9ccf35f", - "reference": "e08ff75ed78ab66622662c3914abb55ba9ccf35f", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-navigation/zipball/a10ae58499ac50c2d4b34773c85653c0256a2e61", + "reference": "a10ae58499ac50c2d4b34773c85653c0256a2e61", "shasum": "" }, "require": { @@ -4021,7 +4021,8 @@ }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "drupal/coder": "^8.3" + "drupal/coder": "^8.3", + "drupal/menu_block_current_language": "^2.0" }, "type": "drupal-module", "license": [ @@ -4029,23 +4030,23 @@ ], "description": "Helfi - Navigation", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-navigation/tree/2.1.3", + "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-navigation/tree/2.1.4", "issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-navigation/issues" }, - "time": "2023-10-06T09:42:23+00:00" + "time": "2023-10-24T07:08:39+00:00" }, { "name": "drupal/helfi_platform_config", - "version": "3.4.27", + "version": "3.4.32", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git", - "reference": "2e2a0532dcf2d6046d2f0e2498bd6456d224fca1" + "reference": "3fc6a55c3e54e0fcc83971bef6b8cd108aa59a7d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/2e2a0532dcf2d6046d2f0e2498bd6456d224fca1", - "reference": "2e2a0532dcf2d6046d2f0e2498bd6456d224fca1", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/3fc6a55c3e54e0fcc83971bef6b8cd108aa59a7d", + "reference": "3fc6a55c3e54e0fcc83971bef6b8cd108aa59a7d", "shasum": "" }, "require": { @@ -4054,6 +4055,7 @@ "drupal/config_ignore": "^2.3", "drupal/config_rewrite": "^1.4", "drupal/content_lock": "^2.2", + "drupal/core": "^9.5", "drupal/crop": "^2.1", "drupal/default_content": "^2.0.0-alpha2", "drupal/diff": "^1.0", @@ -4149,10 +4151,10 @@ ], "description": "HELfi platform config", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/3.4.27", + "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/3.4.32", "issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues" }, - "time": "2023-10-18T14:22:55+00:00" + "time": "2023-10-24T19:15:05+00:00" }, { "name": "drupal/helfi_proxy", @@ -6243,17 +6245,17 @@ }, { "name": "drupal/token", - "version": "1.12.0", + "version": "1.13.0", "source": { "type": "git", "url": "https://git.drupalcode.org/project/token.git", - "reference": "8.x-1.12" + "reference": "8.x-1.13" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/token-8.x-1.12.zip", - "reference": "8.x-1.12", - "shasum": "cefe1b203b793682f74ea43e18d0a814cf768763" + "url": "https://ftp.drupal.org/files/projects/token-8.x-1.13.zip", + "reference": "8.x-1.13", + "shasum": "f2a074b51726de3727c1d900237d6d471806a4d2" }, "require": { "drupal/core": "^9.2 || ^10" @@ -6261,8 +6263,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-1.12", - "datestamp": "1688015262", + "version": "8.x-1.13", + "datestamp": "1697885927", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -6270,7 +6272,7 @@ }, "drush": { "services": { - "drush.services.yml": "^9 || ^10" + "drush.services.yml": ">=9" } } }, @@ -15237,6 +15239,71 @@ }, "time": "2022-10-28T13:30:35+00:00" }, + { + "name": "jangregor/phpstan-prophecy", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/Jan0707/phpstan-prophecy.git", + "reference": "2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jan0707/phpstan-prophecy/zipball/2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0", + "reference": "2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "phpstan/phpstan": "^1.0.0" + }, + "conflict": { + "phpspec/prophecy": "<1.7.0,>=2.0.0", + "phpunit/phpunit": "<6.0.0,>=10.0.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.1.1", + "ergebnis/license": "^1.0.0", + "ergebnis/php-cs-fixer-config": "~2.2.0", + "phpspec/prophecy": "^1.7.0", + "phpunit/phpunit": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "JanGregor\\Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Gregor Emge-Triebel", + "email": "jan@jangregor.me" + } + ], + "description": "Provides a phpstan/phpstan extension for phpspec/prophecy", + "support": { + "issues": "https://github.com/Jan0707/phpstan-prophecy/issues", + "source": "https://github.com/Jan0707/phpstan-prophecy/tree/1.0.0" + }, + "funding": [ + { + "url": "https://github.com/localheinz", + "type": "github" + } + ], + "time": "2021-11-08T16:37:47+00:00" + }, { "name": "justinrainbow/json-schema", "version": "5.2.12", @@ -15307,6 +15374,110 @@ }, "time": "2022-04-13T08:02:27+00:00" }, + { + "name": "mglaman/phpstan-drupal", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/mglaman/phpstan-drupal.git", + "reference": "d721420086f146640acecebb7a678661a66e97d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/d721420086f146640acecebb7a678661a66e97d5", + "reference": "d721420086f146640acecebb7a678661a66e97d5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^1.10.1", + "phpstan/phpstan-deprecation-rules": "^1.1.4", + "symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0", + "symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0", + "webflo/drupal-finder": "^1.2" + }, + "require-dev": { + "behat/mink": "^1.8", + "composer/installers": "^1.9", + "drupal/core-recommended": "^8.8@alpha || ^9.0", + "drush/drush": "^9.6 || ^10.0 || ^11", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9", + "slevomat/coding-standard": "^7.1", + "squizlabs/php_codesniffer": "^3.3", + "symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0" + }, + "suggest": { + "jangregor/phpstan-prophecy": "Provides a prophecy/prophecy extension for phpstan/phpstan.", + "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core.", + "phpstan/phpstan-phpunit": "PHPUnit extensions and rules for PHPStan." + }, + "type": "phpstan-extension", + "extra": { + "branch-alias": { + "dev-main": "1.0-dev" + }, + "installer-paths": { + "tests/fixtures/drupal/core": [ + "type:drupal-core" + ], + "tests/fixtures/drupal/libraries/{$name}": [ + "type:drupal-library" + ], + "tests/fixtures/drupal/modules/contrib/{$name}": [ + "type:drupal-module" + ], + "tests/fixtures/drupal/profiles/contrib/{$name}": [ + "type:drupal-profile" + ], + "tests/fixtures/drupal/themes/contrib/{$name}": [ + "type:drupal-theme" + ] + }, + "phpstan": { + "includes": [ + "extension.neon", + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "mglaman\\PHPStanDrupal\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Glaman", + "email": "nmd.matt@gmail.com" + } + ], + "description": "Drupal extension and rules for PHPStan", + "support": { + "issues": "https://github.com/mglaman/phpstan-drupal/issues", + "source": "https://github.com/mglaman/phpstan-drupal/tree/1.2.0" + }, + "funding": [ + { + "url": "https://github.com/mglaman", + "type": "github" + }, + { + "url": "https://opencollective.com/phpstan-drupal", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/mglaman/phpstan-drupal", + "type": "tidelift" + } + ], + "time": "2023-08-24T20:32:56+00:00" + }, { "name": "mikey179/vfsstream", "version": "v1.6.11", @@ -15816,6 +15987,50 @@ }, "time": "2023-04-18T11:58:05+00:00" }, + { + "name": "phpstan/extension-installer", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/phpstan/extension-installer.git", + "reference": "f45734bfb9984c6c56c4486b71230355f066a58a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/f45734bfb9984c6c56c4486b71230355f066a58a", + "reference": "f45734bfb9984c6c56c4486b71230355f066a58a", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.9.0" + }, + "require-dev": { + "composer/composer": "^2.0", + "php-parallel-lint/php-parallel-lint": "^1.2.0", + "phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0" + }, + "type": "composer-plugin", + "extra": { + "class": "PHPStan\\ExtensionInstaller\\Plugin" + }, + "autoload": { + "psr-4": { + "PHPStan\\ExtensionInstaller\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Composer plugin for automatic installation of PHPStan extensions", + "support": { + "issues": "https://github.com/phpstan/extension-installer/issues", + "source": "https://github.com/phpstan/extension-installer/tree/1.3.1" + }, + "time": "2023-05-24T08:59:17+00:00" + }, { "name": "phpstan/phpdoc-parser", "version": "1.24.2", @@ -15863,6 +16078,116 @@ }, "time": "2023-09-26T12:28:12+00:00" }, + { + "name": "phpstan/phpstan", + "version": "1.10.39", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "d9dedb0413f678b4d03cbc2279a48f91592c97c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d9dedb0413f678b4d03cbc2279a48f91592c97c4", + "reference": "d9dedb0413f678b4d03cbc2279a48f91592c97c4", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2023-10-17T15:46:26+00:00" + }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.10.3" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-php-parser": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^9.5" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", + "support": { + "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.1.4" + }, + "time": "2023-08-05T09:02:04+00:00" + }, { "name": "phpunit/php-code-coverage", "version": "9.2.26", diff --git a/conf/cmi/core.entity_form_display.tpr_unit.tpr_unit.default.yml b/conf/cmi/core.entity_form_display.tpr_unit.tpr_unit.default.yml index 7a9913a0..c7e8abdd 100644 --- a/conf/cmi/core.entity_form_display.tpr_unit.tpr_unit.default.yml +++ b/conf/cmi/core.entity_form_display.tpr_unit.tpr_unit.default.yml @@ -16,7 +16,7 @@ dependencies: - path - readonly_field_widget _core: - default_config_hash: eepmIYNv6ShHO0W2uVzuu18Gashz0oos8xMyfTluiMI + default_config_hash: C2Xc2BwYmiIL9SayNQLxaufcoqA5SLusFthQgnmb10A id: tpr_unit.tpr_unit.default targetEntityType: tpr_unit bundle: tpr_unit @@ -24,7 +24,7 @@ mode: default content: accessibility_email: type: readonly_field_widget - weight: 9 + weight: 12 region: content settings: label: above @@ -34,7 +34,7 @@ content: third_party_settings: { } accessibility_phone: type: readonly_field_widget - weight: 8 + weight: 11 region: content settings: label: above @@ -44,7 +44,7 @@ content: third_party_settings: { } accessibility_www: type: readonly_field_widget - weight: 12 + weight: 17 region: content settings: label: above @@ -54,7 +54,7 @@ content: third_party_settings: { } address: type: readonly_field_widget - weight: 14 + weight: 19 region: content settings: label: above @@ -64,7 +64,7 @@ content: third_party_settings: { } address_postal: type: readonly_field_widget - weight: 16 + weight: 21 region: content settings: label: above @@ -74,7 +74,7 @@ content: third_party_settings: { } call_charge_info: type: readonly_field_widget - weight: 15 + weight: 20 region: content settings: label: above @@ -84,7 +84,7 @@ content: third_party_settings: { } contacts: type: readonly_field_widget - weight: 36 + weight: 39 region: content settings: label: above @@ -94,7 +94,7 @@ content: third_party_settings: { } description: type: readonly_field_widget - weight: 13 + weight: 18 region: content settings: label: above @@ -104,7 +104,7 @@ content: third_party_settings: { } email: type: readonly_field_widget - weight: 7 + weight: 10 region: content settings: label: above @@ -114,7 +114,7 @@ content: third_party_settings: { } field_content: type: paragraphs - weight: 27 + weight: 28 region: content settings: title: Paragraph @@ -133,7 +133,7 @@ content: third_party_settings: { } field_lower_content: type: paragraphs - weight: 28 + weight: 29 region: content settings: title: Paragraph @@ -152,14 +152,15 @@ content: third_party_settings: { } field_metatags: type: metatag_firehose - weight: 26 + weight: 27 region: content settings: sidebar: false + use_details: true third_party_settings: { } field_unit_type: type: entity_reference_autocomplete - weight: 28 + weight: 30 region: content settings: match_operator: CONTAINS @@ -169,14 +170,14 @@ content: third_party_settings: { } hide_sidebar_navigation: type: boolean_checkbox - weight: 29 + weight: 31 region: content settings: display_label: true third_party_settings: { } highlights: type: readonly_field_widget - weight: 33 + weight: 36 region: content settings: label: above @@ -193,7 +194,7 @@ content: third_party_settings: { } latitude: type: readonly_field_widget - weight: 17 + weight: 22 region: content settings: label: above @@ -203,7 +204,7 @@ content: third_party_settings: { } links: type: readonly_field_widget - weight: 31 + weight: 33 region: content settings: label: above @@ -213,7 +214,7 @@ content: third_party_settings: { } longitude: type: readonly_field_widget - weight: 18 + weight: 23 region: content settings: label: above @@ -241,7 +242,7 @@ content: third_party_settings: { } opening_hours: type: readonly_field_widget - weight: 32 + weight: 35 region: content settings: label: above @@ -251,7 +252,7 @@ content: third_party_settings: { } other_info: type: readonly_field_widget - weight: 34 + weight: 37 region: content settings: label: above @@ -261,13 +262,13 @@ content: third_party_settings: { } path: type: path - weight: 11 + weight: 16 region: content settings: { } third_party_settings: { } phone: type: readonly_field_widget - weight: 6 + weight: 9 region: content settings: label: above @@ -277,7 +278,7 @@ content: third_party_settings: { } picture_url: type: readonly_field_widget - weight: 3 + weight: 5 region: content settings: label: above @@ -287,14 +288,14 @@ content: third_party_settings: { } picture_url_override: type: media_library_widget - weight: 4 + weight: 6 region: content settings: media_types: { } third_party_settings: { } price_info: type: readonly_field_widget - weight: 35 + weight: 38 region: content settings: label: above @@ -304,7 +305,7 @@ content: third_party_settings: { } provided_languages: type: readonly_field_widget - weight: 30 + weight: 32 region: content settings: label: above @@ -314,7 +315,7 @@ content: third_party_settings: { } service_map_embed: type: readonly_field_widget - weight: 20 + weight: 25 region: content settings: label: above @@ -324,7 +325,7 @@ content: third_party_settings: { } services: type: readonly_field_widget - weight: 21 + weight: 26 region: content settings: label: above @@ -334,19 +335,19 @@ content: third_party_settings: { } show_www: type: boolean_checkbox - weight: 11 + weight: 15 region: content settings: display_label: true third_party_settings: { } simple_sitemap: - weight: 10 + weight: 14 region: content settings: { } third_party_settings: { } streetview_entrance_url: type: readonly_field_widget - weight: 19 + weight: 24 region: content settings: label: above @@ -354,9 +355,24 @@ content: formatter_settings: { } show_description: false third_party_settings: { } + toc_enabled: + type: boolean_checkbox + weight: 3 + region: content + settings: + display_label: true + third_party_settings: { } + toc_title: + type: string_textfield + weight: 4 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } topical: type: readonly_field_widget - weight: 31 + weight: 34 region: content settings: label: above @@ -365,13 +381,13 @@ content: show_description: false third_party_settings: { } translation: - weight: 5 + weight: 8 region: content settings: { } third_party_settings: { } unit_picture_caption: type: string_textarea - weight: 5 + weight: 7 region: content settings: rows: 5 @@ -379,7 +395,7 @@ content: third_party_settings: { } www: type: readonly_field_widget - weight: 10 + weight: 13 region: content settings: label: above diff --git a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.default.yml b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.default.yml index ade74c76..3877b725 100644 --- a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.default.yml +++ b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.default.yml @@ -18,7 +18,7 @@ dependencies: - telephone - text _core: - default_config_hash: rsUs9_e1k9mgX9c276wA8WlLKzCLUoYk2npzo22UFh8 + default_config_hash: tfkOTFeDgVhyd9NcyUP7yambOlzTfsjNcKwlLHPsbhw id: tpr_unit.tpr_unit.default targetEntityType: tpr_unit bundle: tpr_unit @@ -247,6 +247,16 @@ content: third_party_settings: { } weight: 16 region: content + toc_enabled: + type: boolean + label: hidden + settings: + format: default + format_custom_false: '' + format_custom_true: '' + third_party_settings: { } + weight: 2 + region: content topical: type: tpr_connection label: hidden diff --git a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml index 5a137c9e..1669417e 100644 --- a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml +++ b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml @@ -12,7 +12,7 @@ dependencies: - address - helfi_tpr _core: - default_config_hash: lnEuzT7rRncgL-KC-uIf6ZHGYQprRCEHpYN8WrnQUno + default_config_hash: PouCEjXDV9qruMvBHQAwEjr84IOJOn77scrXQSzvxds id: tpr_unit.tpr_unit.minimal targetEntityType: tpr_unit bundle: tpr_unit @@ -73,6 +73,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + toc_enabled: true topical: true unit_picture_caption: true www: true diff --git a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml index 4c54d157..71f2f687 100644 --- a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml +++ b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml @@ -14,7 +14,7 @@ dependencies: - helfi_tpr - imagecache_external _core: - default_config_hash: AoDOI9a3GINbOYGLRXgyPzlenlc4f7iHDdcaKsBT-HM + default_config_hash: 38N-rHkqJOOsX8_Ww-SmyCqRGIxVHf-0OngooKeYAVI id: tpr_unit.tpr_unit.teaser targetEntityType: tpr_unit bundle: tpr_unit @@ -91,6 +91,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + toc_enabled: true topical: true unit_picture_caption: true www: true diff --git a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml index 036d1d99..64956d29 100644 --- a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml +++ b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml @@ -15,7 +15,7 @@ dependencies: - imagecache_external - telephone _core: - default_config_hash: 4Y6H4T5UpKZSpYZp9BRJvH-cgRpJ9kH2A7-uMC5cioU + default_config_hash: Ibwu6ghoi4cuIpb_xkzuwiOVxa2SoY6lX-BJnVPFSdE id: tpr_unit.tpr_unit.teaser_with_image targetEntityType: tpr_unit bundle: tpr_unit @@ -92,6 +92,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + toc_enabled: true topical: true unit_picture_caption: true www: true diff --git a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml index 8d86a4d7..d0e3a6c4 100644 --- a/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml +++ b/conf/cmi/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml @@ -15,7 +15,7 @@ dependencies: - imagecache_external - telephone _core: - default_config_hash: fg5HihHWCdwJOdmXVRbiQKj5e9jCOJd4f9lqh0xUZLM + default_config_hash: cbtj72q0WqHIiipxyV67zGXit9W_E8evc0_6J-CtIpA id: tpr_unit.tpr_unit.wide_teaser targetEntityType: tpr_unit bundle: tpr_unit @@ -105,6 +105,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + toc_enabled: true topical: true unit_picture_caption: true www: true diff --git a/conf/cmi/user.role.admin.yml b/conf/cmi/user.role.admin.yml index e4dc41b1..8f0ca688 100644 --- a/conf/cmi/user.role.admin.yml +++ b/conf/cmi/user.role.admin.yml @@ -194,8 +194,6 @@ permissions: - 'update media' - 'update own tpr_service' - 'update own tpr_unit' - - 'update tpr_service' - - 'update tpr_unit' - 'use menu link attributes' - 'use siteimprove' - 'use siteimprove prepublish' diff --git a/conf/cmi/views.view.service_list.yml b/conf/cmi/views.view.service_list.yml index 5b6ba000..6c486770 100644 --- a/conf/cmi/views.view.service_list.yml +++ b/conf/cmi/views.view.service_list.yml @@ -360,13 +360,13 @@ display: display_plugin: block position: 1 display_options: + display_extenders: { } pager: type: none options: offset: 0 defaults: pager: false - display_extenders: { } cache_metadata: max-age: -1 contexts: