Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • project/env_link_fixer
  • issue/env_link_fixer-3430284
2 results
Show changes
Commits on Source (4)
{
"name": "drupal/env_link_fixer",
"description": "Fixes link between environments.",
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/env_link_fixer",
"minimum-stability": "dev",
"authors": [
{
"name": "Peter Droogmans",
"email": "attiks@gmail.com"
}
],
"support": {
"issues": "https://www.drupal.org/project/issues/env_link_fixer",
"source": "https://git.drupalcode.org/project/env_link_fixer"
},
"require": {
"drupal/core": "^9.2 || ^10 || ^11"
}
}
mapping: ''
domain_names: ''
......@@ -5,3 +5,11 @@ env_link_fixer.settings:
mapping:
type: string
label: 'Mapping'
filter_settings.env_link_fixer_strip_domain:
type: mapping
label: 'Convert absolute URLs to relative for some domains'
mapping:
domain_names:
type: string
label: 'Domain names'
name: 'Environment Link fixer'
description: 'Environment Link fixer'
type: module
core_version_requirement: ^8 || ^9 || ^10
core_version_requirement: ^8 || ^9 || ^10 || ^11
configure: env_link_fixer.admin_form
......@@ -3,7 +3,6 @@
namespace Drupal\env_link_fixer\Plugin\Filter;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Markup;
use Drupal\filter\FilterProcessResult;
use Drupal\filter\Plugin\FilterBase;
......@@ -19,6 +18,13 @@ use Drupal\filter\Plugin\FilterBase;
*/
class RewriteOwnDomainLinks extends FilterBase {
/**
* {@inheritdoc}
*/
public $settings = [
'domain_names' => '',
];
/**
* {@inheritdoc}
*/
......
......@@ -3,9 +3,9 @@
namespace Drupal\Tests\env_link_fixer\Kernel;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\Tests\field\Kernel\FieldKernelTestBase;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\Tests\field\Kernel\FieldKernelTestBase;
/**
* Common functions.
......@@ -104,7 +104,7 @@ class TestBase extends FieldKernelTestBase {
}
/**
* fix data provider keys.
* Fix data provider keys.
*/
protected function fixProviderKeys(string $prefix, array $tests) : array {
$output = [];
......@@ -114,4 +114,5 @@ class TestBase extends FieldKernelTestBase {
return $output;
}
}