Commit 839caad4 authored by alexpott's avatar alexpott

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
......@@ -88,10 +88,6 @@ public static function create(ContainerInterface $container, array $configuratio
* {@inheritdoc}
*/
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, '/');
......
......@@ -54,18 +54,6 @@ public function testRouted($value, $expected) {
$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().
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment