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
Loading
Loading
Loading
Loading
+0 −4
Changes for core/modules/menu_link_content/src/Plugin/migrate/process/LinkUri.php: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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, '/');

+0 −12
Changes for core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -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().
   *