Commit caef5894 authored by catch's avatar catch
Browse files

Issue #3539537 by drunken monkey: Deprecation warning in...

Issue #3539537 by drunken monkey: Deprecation warning in DefaultPluginManager::__construct() is too unspecific

(cherry picked from commit 387e10a4)
parent e8044d7b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public function __construct($subdir, \Traversable $namespaces, ModuleHandlerInte
      $this->pluginDefinitionAnnotationName = $plugin_definition_attribute_name ?? 'Drupal\Component\Annotation\Plugin';
      $this->additionalAnnotationNamespaces = $plugin_definition_annotation_name ?? [];
      if ($plugin_definition_attribute_name) {
        @trigger_error('Not supporting attribute discovery in ' . __CLASS__ . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Provide an Attribute class and an Annotation class for BC. See https://www.drupal.org/node/3395582', E_USER_DEPRECATED);
        @trigger_error('Not supporting attribute discovery in ' . static::class . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Provide an Attribute class and an Annotation class for BC. See https://www.drupal.org/node/3395582', E_USER_DEPRECATED);
      }
    }
  }