Skip to content
Snippets Groups Projects
Unverified Commit 839caad4 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3112642 by dhirendra.mishra, Hardik_Patel_12, alexpott: Remove all...

Issue #3112642 by dhirendra.mishra, Hardik_Patel_12, alexpott: Remove all @deprecated code from menu_link_content module
parent 8e37bfb0
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
...@@ -88,10 +88,6 @@ public static function create(ContainerInterface $container, array $configuratio ...@@ -88,10 +88,6 @@ public static function create(ContainerInterface $container, array $configuratio
* {@inheritdoc} * {@inheritdoc}
*/ */
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
if (is_array($value)) {
$value = reset($value);
@trigger_error('Passing an array as source value into the link_uri migrate process plugin is deprecated in drupal:8.8.0. The possibility to pass an array as source value to the plugin will be removed in drupal:9.0.0. Pass a string value instead. See https://www.drupal.org/node/3043694', E_USER_DEPRECATED);
}
$path = ltrim($value, '/'); $path = ltrim($value, '/');
......
...@@ -54,18 +54,6 @@ public function testRouted($value, $expected) { ...@@ -54,18 +54,6 @@ public function testRouted($value, $expected) {
$this->assertSame($expected, $actual); $this->assertSame($expected, $actual);
} }
/**
* Tests legacy handling for LinkUri::transform().
*
* @dataProvider providerTestRouted
* @covers ::transform
* @expectedDeprecation Passing an array as source value into the link_uri migrate process plugin is deprecated in drupal:8.8.0. The possibility to pass an array as source value to the plugin will be removed in drupal:9.0.0. Pass a string value instead. See https://www.drupal.org/node/3043694
* @group legacy
*/
public function testRoutedLegacy($value, $expected) {
$this->testRouted([$value], $expected);
}
/** /**
* Provides test cases for LinkUriTest::testTransform(). * Provides test cases for LinkUriTest::testTransform().
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment