X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FConverter%2FHookURLOutboundAlter.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FConverter%2FHookURLOutboundAlter.php;h=09a4e079d4d4b3f2f9472fd7e1af83cefa98c5de;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/HookURLOutboundAlter.php b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/HookURLOutboundAlter.php new file mode 100644 index 000000000..09a4e079d --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/HookURLOutboundAlter.php @@ -0,0 +1,41 @@ +writeService($target, 'outbound_path_processor', [ + 'class' => 'Drupal\\' . $target->id() . '\\OutboundPathProcessor', + 'tags' => [ + [ 'name' => 'path_processor_outbound' ], + ], + ]); + + $render = [ + '#theme' => 'dmu_outbound_path_processor', + '#module' => $target->id(), + ]; + $processor = $this->parse($render); + $target + ->getIndexer('function') + ->get('hook_url_outbound_alter') + ->cloneAsMethodOf($processor) + ->setName('processOutbound'); + $this->writeClass($target, $processor); + } + +}