- πΊπΈUnited States scott_earnest
Drupal 11 Compatibility
New parameter added to \Drupal\Core\Form\ConfigFormBase::__construct
Drupal change record: https://www.drupal.org/node/3404140 βOn "ConfigFormBase", you now must pass "TypedConfigManagerInterface" in the __construct function
page "/admin/config/search/shurly/settings/domains" throws error:
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/docroot/modules/contrib/shurly/shurly_domains/src/Form/ShurlyDomainsSettings.php on line 18 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
New patch for D11:
shurly_domain_D11-3304340-6.diff β - πΊπΈUnited States scott_earnest
Testing Steps
Visit the Shurly Domain settings:
- /admin/config/search/shurly/settings/domainsAs a site administrator, add regex domain patterns in the "Allowed Domains" field, for example:
.*\.gov$ .*\.mil$
As a site "user" try to add a domain that is not supported, like "www.google.com"
Verify that the "Custom error message" from the Shurly Domains settings is displayed.
Either add the appropriate pattern to the allowed domains or try to enter a valid domain.
Verify that the domain is added successfully.
RTBC +1