Skip to content
Snippets Groups Projects

Convert MigrateSource plugin discovery to attributes

Closed Michael Strelan requested to merge issue/drupal-3421014:3421014-migrate-source into 11.x
Compare and
136 files
+ 1134
626
Compare changes
  • Side-by-side
  • Inline
Files
136
@@ -114,7 +114,7 @@ protected function parseClass(string $class, \SplFileInfo $fileinfo): array {
* @see \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()
* @see \Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()
*/
private function prepareAnnotationDefinition(AnnotationInterface $annotation, string $class): void {
protected function prepareAnnotationDefinition(AnnotationInterface $annotation, string $class): void {
$annotation->setClass($class);
if (!$annotation->getProvider()) {
$annotation->setProvider($this->getProviderFromNamespace($class));
@@ -133,7 +133,7 @@ private function prepareAnnotationDefinition(AnnotationInterface $annotation, st
* @see \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery::getAnnotationReader()
* @see \Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery::getAnnotationReader()
*/
private function getAnnotationReader() : SimpleAnnotationReader {
protected function getAnnotationReader() : SimpleAnnotationReader {
if (!isset($this->annotationReader)) {
$this->annotationReader = new SimpleAnnotationReader();
Loading