diff --git a/.gitignore b/.gitignore index bbe354f..ac4f2fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .phpdoc +/vendor diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1ecc205 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,35 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-merge-conflict + - id: check-yaml + - id: mixed-line-ending + args: [--fix=lf] + + - repo: local + hooks: + - id: phpcs-drupal + name: PHPCS - Drupal coding standards + entry: vendor/bin/phpcs + language: script + types: [php] + args: + - --standard=Drupal,DrupalPractice + - --extensions=php,module,inc,install,test,profile,theme,yml + pass_filenames: true + + - id: phpstan + name: PHPStan - Static analysis + entry: vendor/bin/phpstan analyse + language: script + types: [php] + pass_filenames: false + + - repo: https://github.com/commitizen-tools/commitizen + rev: v3.29.0 + hooks: + - id: commitizen + stages: [commit-msg] diff --git a/README.md b/README.md index d62132a..b6c0ab9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,21 @@ the processed arguments, and it is available to use it anywhere. \Drupal::service('alias_subpaths.context_manager')->getProcessedContextBag(); ``` +## Requirements + +Install pre-commit + +# Mac +brew install pre-commit + +# Linux +pip install pre-commit + +# From project root +pre-commit install +pre-commit install --hook-type commit-msg + + ## Installation To install this module as mrmilu module inside `modules/mrmilu` folder following composer commands should be executed: - +
  • Properties
  • - +
  • Methods
  • - +
  • Properties
  • - +
  • Methods
  • - +
  • Properties
  • - +
  • Methods
  • - + diff --git a/docs/classes/Drupal-alias-subpaths-ArgumentResolver-BaseArgumentResolver.html b/docs/classes/Drupal-alias-subpaths-ArgumentResolver-BaseArgumentResolver.html index 1f94da8..caa82d7 100644 --- a/docs/classes/Drupal-alias-subpaths-ArgumentResolver-BaseArgumentResolver.html +++ b/docs/classes/Drupal-alias-subpaths-ArgumentResolver-BaseArgumentResolver.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    BaseArgumentResolver - + - + implements ArgumentResolverInterface - +

    @@ -234,7 +234,7 @@

    - +

    Constants @@ -255,8 +255,8 @@

    - - + + public mixed @@ -265,16 +265,16 @@

    - - - - + + + +

    - +

    @@ -308,12 +308,12 @@

    - - - - - + + + + +
    Return values
    @@ -351,12 +351,12 @@

    - - - - - + + + + +
    Return values
    @@ -394,8 +394,8 @@

    - - + +

    Parameters
    @@ -409,9 +409,9 @@
    Parameters
    - - + +
    Return values
    @@ -449,8 +449,8 @@

    - - + +

    Parameters
    @@ -464,9 +464,9 @@
    Parameters
    - - + +
    Return values
    @@ -575,7 +575,7 @@
    Return values
    - +
    On this page @@ -593,8 +593,8 @@
    Return values
  • PARAM_NAME
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-ArgumentResolver-DefaultArgumentResolver.html b/docs/classes/Drupal-alias-subpaths-ArgumentResolver-DefaultArgumentResolver.html index bd459a5..4fa1b80 100644 --- a/docs/classes/Drupal-alias-subpaths-ArgumentResolver-DefaultArgumentResolver.html +++ b/docs/classes/Drupal-alias-subpaths-ArgumentResolver-DefaultArgumentResolver.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends BaseArgumentResolver - +
    in package
    - - + +

    @@ -227,7 +227,7 @@

    - +

    Constants @@ -248,8 +248,8 @@

    - - + + public mixed @@ -258,16 +258,16 @@

    - - - - + + + +

    - +

    @@ -301,12 +301,12 @@

    - - - - - + + + + +
    Return values
    @@ -344,12 +344,12 @@

    - - - - - + + + + +
    Return values
    @@ -387,8 +387,8 @@

    - - + +

    Parameters
    @@ -402,9 +402,9 @@
    Parameters
    - - + +
    Return values
    @@ -442,8 +442,8 @@

    - - + +

    Parameters
    @@ -457,9 +457,9 @@
    Parameters
    - - + +
    Return values
    @@ -568,7 +568,7 @@
    Return values
    - +
    On this page @@ -586,8 +586,8 @@
    Return values
  • PARAM_NAME
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-ArgumentResolverHandlerInterface.html b/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-ArgumentResolverHandlerInterface.html index 067698c..6635ec8 100644 --- a/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-ArgumentResolverHandlerInterface.html +++ b/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-ArgumentResolverHandlerInterface.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -197,7 +197,7 @@

    - +

    @@ -231,8 +231,8 @@

    - - + +

    Parameters
    @@ -246,9 +246,9 @@
    Parameters
    - - + +
    Return values
    @@ -286,7 +286,7 @@

    - +

    If no specific argument resolver is configured for the given ID, a default argument resolver should be returned.

    @@ -304,9 +304,9 @@

    Parameters
    - - + +
    Return values
    @@ -344,8 +344,8 @@

    - - + +

    Parameters
    @@ -359,9 +359,9 @@
    Parameters
    - - + +
    Return values
    @@ -470,7 +470,7 @@
    Return values
    - +
    On this page @@ -490,7 +490,7 @@
    Return values
  • routeAllowArguments()
  • - +
    diff --git a/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-SettingsArgumentResolverHandler.html b/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-SettingsArgumentResolverHandler.html index 1fb4b2a..26688c4 100644 --- a/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-SettingsArgumentResolverHandler.html +++ b/docs/classes/Drupal-alias-subpaths-ArgumentResolverHandler-SettingsArgumentResolverHandler.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    SettingsArgumentResolverHandler - + - + implements ArgumentResolverHandlerInterface - +

    @@ -214,9 +214,9 @@

    - - + +

    @@ -250,8 +250,8 @@

    - - + +

    Parameters
    @@ -265,9 +265,9 @@
    Parameters
    - - + +
    Return values
    @@ -305,8 +305,8 @@

    - - + +

    Parameters
    @@ -320,9 +320,9 @@
    Parameters
    - - + +
    Return values
    @@ -360,8 +360,8 @@

    - - + +

    Parameters
    @@ -375,9 +375,9 @@
    Parameters
    - - + +
    Return values
    @@ -486,7 +486,7 @@
    Return values
    - +
    On this page @@ -497,8 +497,8 @@
    Return values
  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Breadcrumb-AliasSubpathsBreadcrumbBuilder.html b/docs/classes/Drupal-alias-subpaths-Breadcrumb-AliasSubpathsBreadcrumbBuilder.html index d3493dd..e06193f 100644 --- a/docs/classes/Drupal-alias-subpaths-Breadcrumb-AliasSubpathsBreadcrumbBuilder.html +++ b/docs/classes/Drupal-alias-subpaths-Breadcrumb-AliasSubpathsBreadcrumbBuilder.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    AliasSubpathsBreadcrumbBuilder - + - + implements BreadcrumbBuilderInterface - +

    @@ -225,9 +225,9 @@

    - - + +

    Properties @@ -257,18 +257,18 @@

    The admin context service.

    - + protected AdminContext $adminContext - - - - + + + +

    @@ -305,8 +305,8 @@

    - - + +

    Parameters
    @@ -320,11 +320,11 @@
    Parameters
    - - - + + +
    - - + +
    Parameters
    @@ -361,15 +361,15 @@
    Parameters
    : RouteMatchInterface
    - +
    - - - + + +
    - - + +
    Parameters
    @@ -406,15 +406,15 @@
    Parameters
    : RouteMatchInterface
    - +
    - - - + + +

    @@ -513,7 +513,7 @@
    Parameters
    - +
    On this page @@ -525,14 +525,14 @@
    Parameters
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Cache-Context-NodeArgumentsCacheContext.html b/docs/classes/Drupal-alias-subpaths-Cache-Context-NodeArgumentsCacheContext.html index 3f77e9a..dd85d02 100644 --- a/docs/classes/Drupal-alias-subpaths-Cache-Context-NodeArgumentsCacheContext.html +++ b/docs/classes/Drupal-alias-subpaths-Cache-Context-NodeArgumentsCacheContext.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -123,18 +123,18 @@

    Fil

    NodeArgumentsCacheContext - + - + implements CacheContextInterface - +

    @@ -244,9 +244,9 @@

    - - + +

    Properties @@ -276,18 +276,18 @@

    The request stack service.

    - + protected RequestStack $requestStack - - - - + + + +

    @@ -324,8 +324,8 @@

    - - + +

    Parameters
    @@ -339,11 +339,11 @@
    Parameters
    - - - + + +
    - - - - - - + + + + + +
    - - - - - - + + + + + +
    - - - - - - + + + + + +
    - - - - - + + + + +
    Return values
    @@ -590,7 +590,7 @@
    Return values

    - +
    On this page @@ -602,14 +602,14 @@
    Return values
  • Methods
  • - +
  • Properties
  • - +
  • Methods
  • - +

    Reports

    Deprecated

    @@ -121,15 +121,15 @@

    Fil

    ContextBag - + - - + +

    @@ -310,9 +310,9 @@

    - - + +

    Properties @@ -342,7 +342,7 @@

    An array holding the raw context parameters.

    - + protected array<string|int, ContextParam> @@ -352,10 +352,10 @@

    Each element is an instance of \Drupal\alias_subpaths\ContextParam.

    - - - + + +

    An array holding the processed context content.

    - + protected array<string|int, mixed> @@ -391,10 +391,10 @@

    This array is generated after processing the raw context parameters.

    - - - + + +

    The internal Drupal path of the matched route.

    - + private string|null $path = NULL - - - - + + + +

    The route information associated with the current context.

    - + private array<string|int, mixed>|null @@ -504,10 +504,10 @@

    This is typically an associative array containing route details.

    - - - + + +

    @@ -544,8 +544,8 @@

    - - + +

    Parameters
    @@ -559,11 +559,11 @@
    Parameters
    - - - + + +
    - +

    The raw content is wrapped in a ContextParam object and stored in the bag.

    @@ -608,11 +608,11 @@
    Parameters
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -683,12 +683,12 @@

    - - - - - + + + + +
    Return values
    @@ -726,12 +726,12 @@

    - - - - - + + + + +
    Return values
    @@ -769,8 +769,8 @@

    - - + +

    Parameters
    @@ -784,9 +784,9 @@
    Parameters
    - - + +
    Return values
    @@ -824,12 +824,12 @@

    - - - - - + + + + +
    Return values
    @@ -867,12 +867,12 @@

    - - - - - + + + + +
    Return values
    @@ -910,15 +910,15 @@

    - +

    It iterates through the available argument processor definitions to find one that matches the current route name. The corresponding processor plugin is then instantiated and executed, generating the processed content.

    - - + +

    Tags @@ -930,14 +930,14 @@
    PluginException - +

    If an error occurs during plugin processing.

    - +
    Return values
    @@ -975,8 +975,8 @@

    - - + +

    Parameters
    @@ -990,9 +990,9 @@
    Parameters
    - - + +
    Return values
    @@ -1030,8 +1030,8 @@

    - - + +

    Parameters
    @@ -1045,9 +1045,9 @@
    Parameters
    - - + +
    Return values
    @@ -1085,15 +1085,15 @@

    - +

    This method aggregates the processed values from each parameter using their parameter names as keys.

    - - - + + +
    Return values
    @@ -1202,7 +1202,7 @@
    Return values

    - +
    On this page @@ -1214,7 +1214,7 @@
    Return values
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-ContextBagFactory.html b/docs/classes/Drupal-alias-subpaths-ContextBagFactory.html index 46a7854..f0385ea 100644 --- a/docs/classes/Drupal-alias-subpaths-ContextBagFactory.html +++ b/docs/classes/Drupal-alias-subpaths-ContextBagFactory.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -121,15 +121,15 @@

    Fil

    ContextBagFactory - + - - + +

    @@ -210,9 +210,9 @@

    - - + +

    Properties @@ -242,18 +242,18 @@

    The ArgumentProcessorManager service.

    - + protected ArgumentProcessorManager $argumentProcessorManager - - - - + + + +

    @@ -290,8 +290,8 @@

    - - + +

    Parameters
    @@ -305,11 +305,11 @@
    Parameters
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -451,7 +451,7 @@
    Return values

    - +
    On this page @@ -463,14 +463,14 @@
    Return values
  • Methods
  • - +
  • Properties
  • - +
  • Methods
  • - +

    Reports

    Deprecated

    @@ -121,15 +121,15 @@

    Fil

    ContextManager - + - - + +

    @@ -232,9 +232,9 @@

    - - + +

    Properties @@ -264,7 +264,7 @@

    An associative array holding context bags.

    - + protected array<string|int, mixed> @@ -274,10 +274,10 @@

    Each context bag is keyed by an identifier.

    - - - + + +

    The context bag factory service.

    - + private ContextBagFactory $contextBagFactory - - - - + + + +

    @@ -351,8 +351,8 @@

    - - + +

    Parameters
    @@ -366,11 +366,11 @@
    Parameters
    - - - + + +
    - +

    If a context bag does not already exist for the given key, a new one is created using the context bag factory.

    @@ -416,9 +416,9 @@
    Parameters
    - - + +
    Return values
    @@ -456,8 +456,8 @@

    - - + +

    Parameters
    @@ -471,9 +471,9 @@
    Parameters
    - - + +
    Return values
    @@ -511,7 +511,7 @@

    - +

    This method retrieves the context bag identified by the key and processes it, returning the processed context data.

    @@ -529,7 +529,7 @@

    Parameters
    - +
    Tags @@ -541,14 +541,14 @@
    PluginException - +

    Thrown if there is an error processing the context bag.

    - +
    Return values
    @@ -657,7 +657,7 @@
    Return values

    - +
    On this page @@ -669,7 +669,7 @@
    Return values
  • Methods
  • - +
  • Properties
  • - +
  • Methods
  • - +

    Reports

    Deprecated

    @@ -121,15 +121,15 @@

    Fil

    ContextParam - + - - + +

    @@ -260,9 +260,9 @@

    - - + +

    Properties @@ -292,18 +292,18 @@

    The name of the parameter after processing.

    - + private string|null $paramName = NULL - - - - + + + +

    The processed value of the parameter.

    - + private mixed $processedValue = NULL - - - - + + + +

    The original raw value of the parameter.

    - + private string $rawValue - - - - + + + +

    @@ -414,8 +414,8 @@

    - - + +

    Parameters
    @@ -429,11 +429,11 @@
    Parameters
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -504,12 +504,12 @@

    - - - - - + + + + +
    Return values
    @@ -547,12 +547,12 @@

    - - - - - + + + + +
    Return values
    @@ -590,8 +590,8 @@

    - - + +

    Parameters
    @@ -605,9 +605,9 @@
    Parameters
    - - + +
    Return values
    @@ -645,8 +645,8 @@

    - - + +

    Parameters
    @@ -660,9 +660,9 @@
    Parameters
    - - + +
    Return values
    @@ -700,8 +700,8 @@

    - - + +

    Parameters
    @@ -715,9 +715,9 @@
    Parameters
    - - + +
    Return values
    @@ -826,7 +826,7 @@
    Return values

    - +
    On this page @@ -838,7 +838,7 @@
    Return values
  • Methods
  • - +
  • Properties
    • @@ -847,7 +847,7 @@
      Return values
    • $rawValue
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-EventSubscriber-ArgumentProcessorEventSubscriber.html b/docs/classes/Drupal-alias-subpaths-EventSubscriber-ArgumentProcessorEventSubscriber.html index a1bcb34..85e6018 100644 --- a/docs/classes/Drupal-alias-subpaths-EventSubscriber-ArgumentProcessorEventSubscriber.html +++ b/docs/classes/Drupal-alias-subpaths-EventSubscriber-ArgumentProcessorEventSubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    ArgumentProcessorEventSubscriber - + - + implements EventSubscriberInterface - +

    @@ -263,9 +263,9 @@

    - - + +

    Properties @@ -295,18 +295,18 @@

    The admin context service.

    - + protected AdminContext $adminContext - - - - + + + +

    The alias subpaths manager service.

    - + private AliasSubpathsManager $aliasSubpathsManager - - - - + + + +

    The current route match service.

    - + private CurrentRouteMatch $currentRouteMatch - - - - + + + +

    The module handler service.

    - + private ModuleHandlerInterface $moduleHandler - - - - + + + +

    @@ -454,8 +454,8 @@

    - - + +

    Parameters
    @@ -496,11 +496,11 @@
    Parameters
    - - - + + +
    - - - - - - + + + + + +
    - +

    This method checks whether the current route is applicable for alias subpaths processing. If it is, the alias subpaths are resolved; otherwise, the request is skipped. If resolution fails, a NotFoundHttpException is @@ -583,11 +583,11 @@

    Parameters
    - - - + + +
    - +

    This method is invoked during the response event. It checks if alias subpaths processing is disabled for the current request by inspecting the '_disable_alias_subpaths' attribute. If not disabled, it decodes the @@ -641,7 +641,7 @@

    Parameters
    - +
    Tags @@ -653,16 +653,16 @@
    NotFoundHttpException - +

    Thrown if resolution fails due to invalid or not allowed arguments.

    - - + +
    - +

    If the parameter is an instance of EntityInterface and the response implements CacheableResponseInterface, the entity is added as a cacheable dependency to the response. This ensures that changes to @@ -719,11 +719,11 @@

    Parameters
    - - - + + +

    @@ -822,7 +822,7 @@
    Parameters
    - +
    On this page @@ -834,7 +834,7 @@
    Parameters
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Exception-InvalidArgumentException.html b/docs/classes/Drupal-alias-subpaths-Exception-InvalidArgumentException.html index c77179b..f826fbb 100644 --- a/docs/classes/Drupal-alias-subpaths-Exception-InvalidArgumentException.html +++ b/docs/classes/Drupal-alias-subpaths-Exception-InvalidArgumentException.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends PluginException - +
    in package
    - - + +

    @@ -190,9 +190,9 @@

    - - + +

    @@ -226,14 +226,14 @@

    - - - - - - + + + + + +

    @@ -332,7 +332,7 @@

    - +
    On this page @@ -343,8 +343,8 @@

  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Exception-NotAllowedArgumentsException.html b/docs/classes/Drupal-alias-subpaths-Exception-NotAllowedArgumentsException.html index 5445177..f926961 100644 --- a/docs/classes/Drupal-alias-subpaths-Exception-NotAllowedArgumentsException.html +++ b/docs/classes/Drupal-alias-subpaths-Exception-NotAllowedArgumentsException.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends PluginException - +
    in package
    - - + +

    @@ -190,9 +190,9 @@

    - - + +

    @@ -226,14 +226,14 @@

    - - - - - - + + + + + +

    @@ -332,7 +332,7 @@

    - +
    On this page @@ -343,8 +343,8 @@

  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-PathProcessor-PathProcessorAliasSubpaths.html b/docs/classes/Drupal-alias-subpaths-PathProcessor-PathProcessorAliasSubpaths.html index db403a9..33b70df 100644 --- a/docs/classes/Drupal-alias-subpaths-PathProcessor-PathProcessorAliasSubpaths.html +++ b/docs/classes/Drupal-alias-subpaths-PathProcessor-PathProcessorAliasSubpaths.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    PathProcessorAliasSubpaths - + - + implements InboundPathProcessorInterface - +

    @@ -218,9 +218,9 @@

    - - + +

    Properties @@ -250,18 +250,18 @@

    The alias subpaths alias manager.

    - + private AliasSubpathsAliasManager $aliasSubpathsAliasManager - - - - + + + +

    @@ -298,8 +298,8 @@

    - - + +

    Parameters
    @@ -313,11 +313,11 @@
    Parameters
    - - - + + +
    - - + +
    Parameters
    @@ -354,22 +354,22 @@
    Parameters
    : mixed
    - +
    $request : Request
    - +
    - - - + + +

    @@ -468,7 +468,7 @@
    Parameters
    - +
    On this page @@ -480,14 +480,14 @@
    Parameters
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorBase.html b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorBase.html index 3016896..dc79489 100644 --- a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorBase.html +++ b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorBase.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,18 +125,18 @@

    extends PluginBase - +
    in package
    - + implements ArgumentProcessorInterface, ContainerFactoryPluginInterface - +

    @@ -289,9 +289,9 @@

    - - + +

    Properties @@ -321,18 +321,18 @@

    The context bag containing context parameters.

    - + protected ContextBag $contextBag - - - - + + + +

    The context manager service.

    - + protected ContextManager $contextManager - - - - + + + +

    The current route match service.

    - + protected CurrentRouteMatch $currentRouteMatch - - - - + + + +

    @@ -480,8 +480,8 @@

    - - + +

    Parameters
    @@ -531,11 +531,11 @@
    Parameters
    - - - + + +
    - - + +
    Parameters
    @@ -572,36 +572,36 @@
    Parameters
    : ContainerInterface
    - +
    $configuration : array<string|int, mixed>
    - +
    $plugin_id : mixed
    - +
    $plugin_definition : mixed
    - +
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -672,7 +672,7 @@

    - +

    Iterates through each allowed argument type and uses the corresponding argument resolver to attempt to resolve the raw value from the context argument. On a successful resolution, the context argument is updated with @@ -701,7 +701,7 @@

    Parameters
    - +
    Tags @@ -713,14 +713,14 @@
    InvalidArgumentException - +

    Thrown when none of the allowed argument types resolve the argument.

    - +
    Return values
    @@ -758,14 +758,14 @@

    - +

    If the route does not allow arguments and the context bag is empty, no processing is performed. Otherwise, the allowed argument types are retrieve and each context parameter is processed accordingly.

    - - + +

    Tags @@ -777,16 +777,16 @@
    NotAllowedArgumentsException - +

    Thrown when the route does not allow arguments.

    - - + +

    - - - - - + + + + +
    Return values
    @@ -857,12 +857,12 @@

    - - - - - + + + + +
    Return values
    @@ -900,12 +900,12 @@

    - - - - - + + + + +
    Return values
    @@ -1014,7 +1014,7 @@
    Return values

    - +
    On this page @@ -1026,7 +1026,7 @@
    Return values
  • Methods
  • - +
  • Properties
    • @@ -1036,7 +1036,7 @@
      Return values
    • $handler
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorInterface.html b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorInterface.html index 522c438..9c49e86 100644 --- a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorInterface.html +++ b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorInterface.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -190,7 +190,7 @@

    - +

    @@ -224,8 +224,8 @@

    - - + +

    Parameters
    @@ -248,9 +248,9 @@
    Parameters
    - - + +
    Return values
    @@ -288,16 +288,16 @@

    - +

    This method triggers the processing logic for alias subpaths arguments.

    - - - - + + + +

    @@ -396,7 +396,7 @@

    - +
    On this page @@ -415,7 +415,7 @@

  • run()
  • - +

    diff --git a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorManager.html b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorManager.html index a7627d2..b1a375e 100644 --- a/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorManager.html +++ b/docs/classes/Drupal-alias-subpaths-Plugin-ArgumentProcessorManager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends DefaultPluginManager - +
    in package
    - - + +

    @@ -194,9 +194,9 @@

    - - + +

    @@ -230,8 +230,8 @@

    - - + +

    Parameters
    @@ -264,11 +264,11 @@
    Parameters
    - - - + + +
    @@ -367,7 +367,7 @@

    Parameters
    - +
    On this page @@ -378,8 +378,8 @@
    Parameters
  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Plugin-Attribute-ArgumentProcessor.html b/docs/classes/Drupal-alias-subpaths-Plugin-Attribute-ArgumentProcessor.html index 1ed66b8..5106ede 100644 --- a/docs/classes/Drupal-alias-subpaths-Plugin-Attribute-ArgumentProcessor.html +++ b/docs/classes/Drupal-alias-subpaths-Plugin-Attribute-ArgumentProcessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -126,15 +126,15 @@

    extends Plugin - +
    in package
    - - + +

    @@ -168,8 +168,8 @@
    Plugin - - + +
    @@ -242,9 +242,9 @@

    - - + +

    Properties @@ -272,19 +272,19 @@

    - - + + public string $id - - - - + + + +
    - - + + public string $route_name - - - - + + + +

    @@ -357,8 +357,8 @@

    - - + +

    Parameters
    @@ -381,11 +381,11 @@
    Parameters
    - - - + + +
    @@ -484,7 +484,7 @@
    Parameters
    - +
    On this page @@ -496,7 +496,7 @@
    Parameters
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-Routing-RouteSubscriber.html b/docs/classes/Drupal-alias-subpaths-Routing-RouteSubscriber.html index 7b99cb8..f025b1a 100644 --- a/docs/classes/Drupal-alias-subpaths-Routing-RouteSubscriber.html +++ b/docs/classes/Drupal-alias-subpaths-Routing-RouteSubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends RouteSubscriberBase - +
    in package
    - - + +

    @@ -190,9 +190,9 @@

    - - + +

    @@ -226,8 +226,8 @@

    - - + +

    Parameters
    @@ -235,15 +235,15 @@
    Parameters
    : RouteCollection
    - +
    - - - + + +
    @@ -342,7 +342,7 @@

    Parameters
    - +
    On this page @@ -353,8 +353,8 @@
    Parameters
  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-decoupled-router-EventSubscriber-AliasSubpathsPathTranslatorSubscriber.html b/docs/classes/Drupal-alias-subpaths-decoupled-router-EventSubscriber-AliasSubpathsPathTranslatorSubscriber.html index 9a33620..1ced7a5 100644 --- a/docs/classes/Drupal-alias-subpaths-decoupled-router-EventSubscriber-AliasSubpathsPathTranslatorSubscriber.html +++ b/docs/classes/Drupal-alias-subpaths-decoupled-router-EventSubscriber-AliasSubpathsPathTranslatorSubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -122,18 +122,18 @@

    Fil

    AliasSubpathsPathTranslatorSubscriber - + - + implements EventSubscriberInterface - + uses StringTranslationTrait @@ -228,9 +228,9 @@

    - - + +

    Properties @@ -260,18 +260,18 @@

    The AliasSubpathsManager service.

    - + private AliasSubpathsManager $aliasSubpathsManager - - - - + + + +

    @@ -308,8 +308,8 @@

    - - + +

    Parameters
    @@ -332,11 +332,11 @@
    Parameters
    - - - + + +
    - - - - - - + + + + + +
    - - + +
    Parameters
    @@ -414,11 +414,11 @@
    Parameters
    - - - + + +

    @@ -517,7 +517,7 @@
    Parameters
    - +
    On this page @@ -529,14 +529,14 @@
    Parameters
  • Methods
  • - +
  • Properties
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-decoupled-router-Routing-RouteSubscriber.html b/docs/classes/Drupal-alias-subpaths-decoupled-router-Routing-RouteSubscriber.html index b250cd2..0863dd3 100644 --- a/docs/classes/Drupal-alias-subpaths-decoupled-router-Routing-RouteSubscriber.html +++ b/docs/classes/Drupal-alias-subpaths-decoupled-router-Routing-RouteSubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -125,15 +125,15 @@

    extends RouteSubscriberBase - +
    in package
    - - + +

    @@ -190,9 +190,9 @@

    - - + +

    @@ -226,8 +226,8 @@

    - - + +

    Parameters
    @@ -235,15 +235,15 @@
    Parameters
    : RouteCollection
    - +
    - - - + + +
    @@ -342,7 +342,7 @@

    Parameters
    - +
    On this page @@ -353,8 +353,8 @@
    Parameters
  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-decoupled-router-SerializerHelper.html b/docs/classes/Drupal-alias-subpaths-decoupled-router-SerializerHelper.html index f532df7..76d4e31 100644 --- a/docs/classes/Drupal-alias-subpaths-decoupled-router-SerializerHelper.html +++ b/docs/classes/Drupal-alias-subpaths-decoupled-router-SerializerHelper.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    SerializerHelper - + - - + +

    @@ -197,9 +197,9 @@

    - - + +

    @@ -233,7 +233,7 @@

    - +

    If the argument is an instance of EntityInterface, an associative array with the entity's canonical URL, type, bundle, ID, and UUID is returned. Otherwise, the argument is JSON-encoded and returned as a single-element @@ -254,7 +254,7 @@

    Parameters
    - +
    Tags @@ -266,14 +266,14 @@
    EntityMalformedException - +

    Thrown if the entity is malformed.

    - +
    Return values
    @@ -395,7 +395,7 @@
    Return values
    - +
    On this page @@ -406,8 +406,8 @@
    Return values
  • Methods
  • - - + +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-node-Plugin-ArgumentProcessor-NodeArgumentProcessor.html b/docs/classes/Drupal-alias-subpaths-node-Plugin-ArgumentProcessor-NodeArgumentProcessor.html index 18fd6db..f8d7b6b 100644 --- a/docs/classes/Drupal-alias-subpaths-node-Plugin-ArgumentProcessor-NodeArgumentProcessor.html +++ b/docs/classes/Drupal-alias-subpaths-node-Plugin-ArgumentProcessor-NodeArgumentProcessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -126,15 +126,15 @@

    extends ArgumentProcessorBase - +
    in package
    - - + +

    @@ -292,9 +292,9 @@

    - - + +

    Properties @@ -324,18 +324,18 @@

    The context bag containing context parameters.

    - + protected ContextBag $contextBag - - - - + + + +

    The context manager service.

    - + protected ContextManager $contextManager - - - - + + + +

    The current route match service.

    - + protected CurrentRouteMatch $currentRouteMatch - - - - + + + +

    @@ -483,8 +483,8 @@

    - - + +

    Parameters
    @@ -534,11 +534,11 @@
    Parameters
    - - - + + +
    - - + +
    Parameters
    @@ -575,36 +575,36 @@
    Parameters
    : ContainerInterface
    - +
    $configuration : array<string|int, mixed>
    - +
    $plugin_id : mixed
    - +
    $plugin_definition : mixed
    - +
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -675,7 +675,7 @@

    - +

    Iterates through each allowed argument type and uses the corresponding argument resolver to attempt to resolve the raw value from the context argument. On a successful resolution, the context argument is updated with @@ -704,7 +704,7 @@

    Parameters
    - +
    Tags @@ -716,14 +716,14 @@
    InvalidArgumentException - +

    Thrown when none of the allowed argument types resolve the argument.

    - +
    Return values
    @@ -761,14 +761,14 @@

    - +

    If the route does not allow arguments and the context bag is empty, no processing is performed. Otherwise, the allowed argument types are retrieve and each context parameter is processed accordingly.

    - - + +

    Tags @@ -780,16 +780,16 @@
    NotAllowedArgumentsException - +

    Thrown when the route does not allow arguments.

    - - + +

    - - - - - + + + + +
    Return values
    @@ -860,12 +860,12 @@

    - - - - - + + + + +
    Return values
    @@ -903,12 +903,12 @@

    - - - - - + + + + +
    Return values
    @@ -1017,7 +1017,7 @@
    Return values

    - +
    On this page @@ -1029,7 +1029,7 @@
    Return values
  • Methods
  • - +
  • Properties
    • @@ -1039,7 +1039,7 @@
      Return values
    • $handler
  • - +
  • Methods
    • diff --git a/docs/classes/Drupal-alias-subpaths-taxonomy-term-Plugin-ArgumentProcessor-TaxonomyTermArgumentProcessor.html b/docs/classes/Drupal-alias-subpaths-taxonomy-term-Plugin-ArgumentProcessor-TaxonomyTermArgumentProcessor.html index d12afe1..5970a16 100644 --- a/docs/classes/Drupal-alias-subpaths-taxonomy-term-Plugin-ArgumentProcessor-TaxonomyTermArgumentProcessor.html +++ b/docs/classes/Drupal-alias-subpaths-taxonomy-term-Plugin-ArgumentProcessor-TaxonomyTermArgumentProcessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -126,15 +126,15 @@

    extends ArgumentProcessorBase - +
    in package
    - - + +

    @@ -292,9 +292,9 @@

    - - + +

    Properties @@ -324,18 +324,18 @@

    The context bag containing context parameters.

    - + protected ContextBag $contextBag - - - - + + + +

    The context manager service.

    - + protected ContextManager $contextManager - - - - + + + +

    The current route match service.

    - + protected CurrentRouteMatch $currentRouteMatch - - - - + + + +

    @@ -483,8 +483,8 @@

    - - + +

    Parameters
    @@ -534,11 +534,11 @@
    Parameters
    - - - + + +
    - - + +
    Parameters
    @@ -575,36 +575,36 @@
    Parameters
    : ContainerInterface
    - +
    $configuration : array<string|int, mixed>
    - +
    $plugin_id : mixed
    - +
    $plugin_definition : mixed
    - +
    - - - + + +
    - - - - - + + + + +
    Return values
    @@ -675,7 +675,7 @@

    - +

    Iterates through each allowed argument type and uses the corresponding argument resolver to attempt to resolve the raw value from the context argument. On a successful resolution, the context argument is updated with @@ -704,7 +704,7 @@

    Parameters
    - +
    Tags @@ -716,14 +716,14 @@
    InvalidArgumentException - +

    Thrown when none of the allowed argument types resolve the argument.

    - +
    Return values
    @@ -761,14 +761,14 @@

    - +

    If the route does not allow arguments and the context bag is empty, no processing is performed. Otherwise, the allowed argument types are retrieve and each context parameter is processed accordingly.

    - - + +

    Tags @@ -780,16 +780,16 @@
    NotAllowedArgumentsException - +

    Thrown when the route does not allow arguments.

    - - + +

    - - - - - + + + + +
    Return values
    @@ -860,12 +860,12 @@

    - - - - - + + + + +
    Return values
    @@ -903,12 +903,12 @@

    - - - - - + + + + +
    Return values
    @@ -1017,7 +1017,7 @@
    Return values

    - +
    On this page @@ -1029,7 +1029,7 @@
    Return values
  • Methods
  • - +
  • Properties
    • @@ -1039,7 +1039,7 @@
      Return values
    • $handler
  • - +
  • Methods
    • diff --git a/docs/css/template.css b/docs/css/template.css index d3d6f22..8f6daf1 100644 --- a/docs/css/template.css +++ b/docs/css/template.css @@ -275,4 +275,4 @@ } .phpdocumentor-uml-diagram svg { cursor: zoom-in; -} \ No newline at end of file +} diff --git a/docs/files/alias-subpaths.html b/docs/files/alias-subpaths.html index 7d3e156..2c6d6ef 100644 --- a/docs/files/alias-subpaths.html +++ b/docs/files/alias-subpaths.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    alias_subpaths.module

    - + @@ -132,7 +132,7 @@
    file
    - +

    Hooks for alias_subpaths.module.

    @@ -176,7 +176,7 @@

    - +

    @@ -199,12 +199,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -212,13 +212,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -317,7 +317,7 @@
    Parameters
    - +
    On this page @@ -329,7 +329,7 @@
    Parameters
    - +
  • Functions
  • - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    alias_subpaths_decoupled_router.module

    - + @@ -132,7 +132,7 @@
    file
    - +

    Hooks for alias_subpaths_decoupled_router.module.

    @@ -176,7 +176,7 @@

    - +

    @@ -199,12 +199,12 @@

    Implements hook_decoupled_router_info_alter().

    - + alias_subpaths_decoupled_router_decoupled_router_info_alter(mixed &$output, mixed $context) : mixed - +

    Parameters
    @@ -212,20 +212,20 @@
    Parameters
    : mixed
    - +
    $context : mixed
    - +
    - - + +

    @@ -324,7 +324,7 @@
    Parameters
    - +
    On this page @@ -336,7 +336,7 @@
    Parameters
    - +
  • Functions
  • - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    AliasSubpathsPathTranslatorSubscriber.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/modules-alias-subpaths-decoupled-router-src-routing-routesubscriber.html b/docs/files/modules-alias-subpaths-decoupled-router-src-routing-routesubscriber.html index 0a534de..83948bc 100644 --- a/docs/files/modules-alias-subpaths-decoupled-router-src-routing-routesubscriber.html +++ b/docs/files/modules-alias-subpaths-decoupled-router-src-routing-routesubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    RouteSubscriber.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/modules-alias-subpaths-decoupled-router-src-serializerhelper.html b/docs/files/modules-alias-subpaths-decoupled-router-src-serializerhelper.html index cdbbc49..3564a4c 100644 --- a/docs/files/modules-alias-subpaths-decoupled-router-src-serializerhelper.html +++ b/docs/files/modules-alias-subpaths-decoupled-router-src-serializerhelper.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    SerializerHelper.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/modules-alias-subpaths-examples-alias-subpaths-examples.html b/docs/files/modules-alias-subpaths-examples-alias-subpaths-examples.html index 80a6ff9..4b974ea 100644 --- a/docs/files/modules-alias-subpaths-examples-alias-subpaths-examples.html +++ b/docs/files/modules-alias-subpaths-examples-alias-subpaths-examples.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    alias_subpaths_examples.module

    - + @@ -132,7 +132,7 @@
    file
    - +

    Hooks for alias_subpaths_examples.module.

    @@ -176,7 +176,7 @@

    - +

    @@ -199,12 +199,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_examples_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -212,13 +212,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -317,7 +317,7 @@
    Parameters
    - +
    On this page @@ -329,7 +329,7 @@
    Parameters
    - +
  • Functions
  • - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    NodeArgumentProcessor.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/modules-alias-subpaths-taxonomy-term-src-plugin-argumentprocessor-taxonomytermargumentprocessor.html b/docs/files/modules-alias-subpaths-taxonomy-term-src-plugin-argumentprocessor-taxonomytermargumentprocessor.html index 094a2ac..d52d066 100644 --- a/docs/files/modules-alias-subpaths-taxonomy-term-src-plugin-argumentprocessor-taxonomytermargumentprocessor.html +++ b/docs/files/modules-alias-subpaths-taxonomy-term-src-plugin-argumentprocessor-taxonomytermargumentprocessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    TaxonomyTermArgumentProcessor.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-aliassubpathsaliasmanager.html b/docs/files/src-aliassubpathsaliasmanager.html index c56fcab..e6c63cd 100644 --- a/docs/files/src-aliassubpathsaliasmanager.html +++ b/docs/files/src-aliassubpathsaliasmanager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    AliasSubpathsAliasManager.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-aliassubpathsmanager.html b/docs/files/src-aliassubpathsmanager.html index 939b590..cd448a0 100644 --- a/docs/files/src-aliassubpathsmanager.html +++ b/docs/files/src-aliassubpathsmanager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    AliasSubpathsManager.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-aliassubpathsroutermanager.html b/docs/files/src-aliassubpathsroutermanager.html index 7c0cdac..58aa641 100644 --- a/docs/files/src-aliassubpathsroutermanager.html +++ b/docs/files/src-aliassubpathsroutermanager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    AliasSubpathsRouterManager.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-argumentresolver-argumentresolverinterface.html b/docs/files/src-argumentresolver-argumentresolverinterface.html index 204a1f5..87cba1e 100644 --- a/docs/files/src-argumentresolver-argumentresolverinterface.html +++ b/docs/files/src-argumentresolver-argumentresolverinterface.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentResolverInterface.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-argumentresolver-baseargumentresolver.html b/docs/files/src-argumentresolver-baseargumentresolver.html index 73c600a..89b0622 100644 --- a/docs/files/src-argumentresolver-baseargumentresolver.html +++ b/docs/files/src-argumentresolver-baseargumentresolver.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    BaseArgumentResolver.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-argumentresolver-defaultargumentresolver.html b/docs/files/src-argumentresolver-defaultargumentresolver.html index ffb68af..2f8ad05 100644 --- a/docs/files/src-argumentresolver-defaultargumentresolver.html +++ b/docs/files/src-argumentresolver-defaultargumentresolver.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    DefaultArgumentResolver.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-argumentresolverhandler-argumentresolverhandlerinterface.html b/docs/files/src-argumentresolverhandler-argumentresolverhandlerinterface.html index be57c9b..4ebc4cb 100644 --- a/docs/files/src-argumentresolverhandler-argumentresolverhandlerinterface.html +++ b/docs/files/src-argumentresolverhandler-argumentresolverhandlerinterface.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentResolverHandlerInterface.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-argumentresolverhandler-settingsargumentresolverhandler.html b/docs/files/src-argumentresolverhandler-settingsargumentresolverhandler.html index 527f545..fda80ef 100644 --- a/docs/files/src-argumentresolverhandler-settingsargumentresolverhandler.html +++ b/docs/files/src-argumentresolverhandler-settingsargumentresolverhandler.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    SettingsArgumentResolverHandler.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-breadcrumb-aliassubpathsbreadcrumbbuilder.html b/docs/files/src-breadcrumb-aliassubpathsbreadcrumbbuilder.html index 5518ec5..990160d 100644 --- a/docs/files/src-breadcrumb-aliassubpathsbreadcrumbbuilder.html +++ b/docs/files/src-breadcrumb-aliassubpathsbreadcrumbbuilder.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    AliasSubpathsBreadcrumbBuilder.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-cache-context-nodeargumentscachecontext.html b/docs/files/src-cache-context-nodeargumentscachecontext.html index eac3b10..e286794 100644 --- a/docs/files/src-cache-context-nodeargumentscachecontext.html +++ b/docs/files/src-cache-context-nodeargumentscachecontext.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    NodeArgumentsCacheContext.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-contextbag.html b/docs/files/src-contextbag.html index f8f0a08..f3ac90e 100644 --- a/docs/files/src-contextbag.html +++ b/docs/files/src-contextbag.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ContextBag.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-contextbagfactory.html b/docs/files/src-contextbagfactory.html index dd34ac2..6d20c64 100644 --- a/docs/files/src-contextbagfactory.html +++ b/docs/files/src-contextbagfactory.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ContextBagFactory.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-contextmanager.html b/docs/files/src-contextmanager.html index 9fb716e..d24f768 100644 --- a/docs/files/src-contextmanager.html +++ b/docs/files/src-contextmanager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ContextManager.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-contextparam.html b/docs/files/src-contextparam.html index 753c038..f049616 100644 --- a/docs/files/src-contextparam.html +++ b/docs/files/src-contextparam.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ContextParam.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-eventsubscriber-argumentprocessoreventsubscriber.html b/docs/files/src-eventsubscriber-argumentprocessoreventsubscriber.html index 92e69dd..409b3fc 100644 --- a/docs/files/src-eventsubscriber-argumentprocessoreventsubscriber.html +++ b/docs/files/src-eventsubscriber-argumentprocessoreventsubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentProcessorEventSubscriber.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-exception-invalidargumentexception.html b/docs/files/src-exception-invalidargumentexception.html index cc2ebb3..0bfed59 100644 --- a/docs/files/src-exception-invalidargumentexception.html +++ b/docs/files/src-exception-invalidargumentexception.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    InvalidArgumentException.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-exception-notallowedargumentsexception.html b/docs/files/src-exception-notallowedargumentsexception.html index 6e77716..33f8423 100644 --- a/docs/files/src-exception-notallowedargumentsexception.html +++ b/docs/files/src-exception-notallowedargumentsexception.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    NotAllowedArgumentsException.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-pathprocessor-pathprocessoraliassubpaths.html b/docs/files/src-pathprocessor-pathprocessoraliassubpaths.html index 7e75cc3..8f2584f 100644 --- a/docs/files/src-pathprocessor-pathprocessoraliassubpaths.html +++ b/docs/files/src-pathprocessor-pathprocessoraliassubpaths.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    PathProcessorAliasSubpaths.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-plugin-argumentprocessorbase.html b/docs/files/src-plugin-argumentprocessorbase.html index 8e97054..820197e 100644 --- a/docs/files/src-plugin-argumentprocessorbase.html +++ b/docs/files/src-plugin-argumentprocessorbase.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentProcessorBase.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-plugin-argumentprocessorinterface.html b/docs/files/src-plugin-argumentprocessorinterface.html index 35c9f72..dac3b32 100644 --- a/docs/files/src-plugin-argumentprocessorinterface.html +++ b/docs/files/src-plugin-argumentprocessorinterface.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentProcessorInterface.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-plugin-argumentprocessormanager.html b/docs/files/src-plugin-argumentprocessormanager.html index 8989609..153dcba 100644 --- a/docs/files/src-plugin-argumentprocessormanager.html +++ b/docs/files/src-plugin-argumentprocessormanager.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentProcessorManager.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-plugin-attribute-argumentprocessor.html b/docs/files/src-plugin-attribute-argumentprocessor.html index a3990ac..5bb47b1 100644 --- a/docs/files/src-plugin-attribute-argumentprocessor.html +++ b/docs/files/src-plugin-attribute-argumentprocessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    ArgumentProcessor.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/files/src-routing-routesubscriber.html b/docs/files/src-routing-routesubscriber.html index 2cfd1fd..51e5011 100644 --- a/docs/files/src-routing-routesubscriber.html +++ b/docs/files/src-routing-routesubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    RouteSubscriber.php

    - + @@ -153,9 +153,9 @@

    - - + +
    @@ -251,7 +251,7 @@

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/graphs/classes.html b/docs/graphs/classes.html index d6223c7..385ac66 100644 --- a/docs/graphs/classes.html +++ b/docs/graphs/classes.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -50,19 +50,19 @@

    @@ -79,12 +79,12 @@

    - +

    Reports

    Deprecated

    diff --git a/docs/index.html b/docs/index.html index 796342e..a6685b3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -114,8 +114,8 @@

    Fil

    Documentation

    - - + +

    Table of Contents @@ -178,7 +178,7 @@

    - +

    @@ -201,12 +201,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -214,13 +214,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -237,12 +237,12 @@

    Implements hook_decoupled_router_info_alter().

    - + alias_subpaths_decoupled_router_decoupled_router_info_alter(mixed &$output, mixed $context) : mixed - +

    Parameters
    @@ -250,20 +250,20 @@
    Parameters
    : mixed
    - +
    $context : mixed
    - +
    - - + +

    @@ -280,12 +280,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_examples_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -293,13 +293,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +
    diff --git a/docs/indices/files.html b/docs/indices/files.html index 7cd9a3f..1d72ca2 100644 --- a/docs/indices/files.html +++ b/docs/indices/files.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -112,7 +112,7 @@

    Fil
    - +

    Files

    A

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    API Documentation

    - +

    Table of Contents @@ -172,7 +172,7 @@

    - +

    @@ -195,12 +195,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -208,13 +208,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -231,12 +231,12 @@

    Implements hook_decoupled_router_info_alter().

    - + alias_subpaths_decoupled_router_decoupled_router_info_alter(mixed &$output, mixed $context) : mixed - +

    Parameters
    @@ -244,20 +244,20 @@
    Parameters
    : mixed
    - +
    $context : mixed
    - +
    - - + +

    @@ -274,12 +274,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_examples_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -287,13 +287,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -392,7 +392,7 @@
    Parameters

    - +
    On this page @@ -404,7 +404,7 @@
    Parameters
    - +
  • Functions
    • diff --git a/docs/namespaces/drupal-alias-subpaths-argumentresolver.html b/docs/namespaces/drupal-alias-subpaths-argumentresolver.html index f91e563..1f67c89 100644 --- a/docs/namespaces/drupal-alias-subpaths-argumentresolver.html +++ b/docs/namespaces/drupal-alias-subpaths-argumentresolver.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-argumentresolverhandler.html b/docs/namespaces/drupal-alias-subpaths-argumentresolverhandler.html index 9132e31..46c1b28 100644 --- a/docs/namespaces/drupal-alias-subpaths-argumentresolverhandler.html +++ b/docs/namespaces/drupal-alias-subpaths-argumentresolverhandler.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-breadcrumb.html b/docs/namespaces/drupal-alias-subpaths-breadcrumb.html index 9fdf0e3..8c15fde 100644 --- a/docs/namespaces/drupal-alias-subpaths-breadcrumb.html +++ b/docs/namespaces/drupal-alias-subpaths-breadcrumb.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-cache-context.html b/docs/namespaces/drupal-alias-subpaths-cache-context.html index faba296..40c1217 100644 --- a/docs/namespaces/drupal-alias-subpaths-cache-context.html +++ b/docs/namespaces/drupal-alias-subpaths-cache-context.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-cache.html b/docs/namespaces/drupal-alias-subpaths-cache.html index 840c78b..c2b1fac 100644 --- a/docs/namespaces/drupal-alias-subpaths-cache.html +++ b/docs/namespaces/drupal-alias-subpaths-cache.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-decoupled-router-eventsubscriber.html b/docs/namespaces/drupal-alias-subpaths-decoupled-router-eventsubscriber.html index 2daf3e7..01ab7ac 100644 --- a/docs/namespaces/drupal-alias-subpaths-decoupled-router-eventsubscriber.html +++ b/docs/namespaces/drupal-alias-subpaths-decoupled-router-eventsubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-decoupled-router-routing.html b/docs/namespaces/drupal-alias-subpaths-decoupled-router-routing.html index 07922a9..0ba9483 100644 --- a/docs/namespaces/drupal-alias-subpaths-decoupled-router-routing.html +++ b/docs/namespaces/drupal-alias-subpaths-decoupled-router-routing.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-decoupled-router.html b/docs/namespaces/drupal-alias-subpaths-decoupled-router.html index c71ca53..59585e3 100644 --- a/docs/namespaces/drupal-alias-subpaths-decoupled-router.html +++ b/docs/namespaces/drupal-alias-subpaths-decoupled-router.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -119,7 +119,7 @@

    Fil

    - +
    On this page @@ -263,7 +263,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-eventsubscriber.html b/docs/namespaces/drupal-alias-subpaths-eventsubscriber.html index 13413e9..76d84d5 100644 --- a/docs/namespaces/drupal-alias-subpaths-eventsubscriber.html +++ b/docs/namespaces/drupal-alias-subpaths-eventsubscriber.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-exception.html b/docs/namespaces/drupal-alias-subpaths-exception.html index 9fbd196..59a8afa 100644 --- a/docs/namespaces/drupal-alias-subpaths-exception.html +++ b/docs/namespaces/drupal-alias-subpaths-exception.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-node-plugin-argumentprocessor.html b/docs/namespaces/drupal-alias-subpaths-node-plugin-argumentprocessor.html index e56fcd6..f7cf897 100644 --- a/docs/namespaces/drupal-alias-subpaths-node-plugin-argumentprocessor.html +++ b/docs/namespaces/drupal-alias-subpaths-node-plugin-argumentprocessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-node-plugin.html b/docs/namespaces/drupal-alias-subpaths-node-plugin.html index 623cf86..3161d3e 100644 --- a/docs/namespaces/drupal-alias-subpaths-node-plugin.html +++ b/docs/namespaces/drupal-alias-subpaths-node-plugin.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-node.html b/docs/namespaces/drupal-alias-subpaths-node.html index 11bdad9..8d11486 100644 --- a/docs/namespaces/drupal-alias-subpaths-node.html +++ b/docs/namespaces/drupal-alias-subpaths-node.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -119,7 +119,7 @@

    Fil

    - +
    On this page @@ -254,7 +254,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-pathprocessor.html b/docs/namespaces/drupal-alias-subpaths-pathprocessor.html index 1daf2bb..939859d 100644 --- a/docs/namespaces/drupal-alias-subpaths-pathprocessor.html +++ b/docs/namespaces/drupal-alias-subpaths-pathprocessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-plugin-attribute.html b/docs/namespaces/drupal-alias-subpaths-plugin-attribute.html index 0460224..661b984 100644 --- a/docs/namespaces/drupal-alias-subpaths-plugin-attribute.html +++ b/docs/namespaces/drupal-alias-subpaths-plugin-attribute.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-plugin.html b/docs/namespaces/drupal-alias-subpaths-plugin.html index 24a9b47..8024fe1 100644 --- a/docs/namespaces/drupal-alias-subpaths-plugin.html +++ b/docs/namespaces/drupal-alias-subpaths-plugin.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -271,7 +271,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-routing.html b/docs/namespaces/drupal-alias-subpaths-routing.html index db14b54..f984690 100644 --- a/docs/namespaces/drupal-alias-subpaths-routing.html +++ b/docs/namespaces/drupal-alias-subpaths-routing.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin-argumentprocessor.html b/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin-argumentprocessor.html index 49753f6..db8358e 100644 --- a/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin-argumentprocessor.html +++ b/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin-argumentprocessor.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin.html b/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin.html index 1fdfd2d..8612896 100644 --- a/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin.html +++ b/docs/namespaces/drupal-alias-subpaths-taxonomy-term-plugin.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths-taxonomy-term.html b/docs/namespaces/drupal-alias-subpaths-taxonomy-term.html index ddb799f..c49c268 100644 --- a/docs/namespaces/drupal-alias-subpaths-taxonomy-term.html +++ b/docs/namespaces/drupal-alias-subpaths-taxonomy-term.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -119,7 +119,7 @@

    Fil

    - +
    On this page @@ -254,7 +254,7 @@

    - +

    diff --git a/docs/namespaces/drupal-alias-subpaths.html b/docs/namespaces/drupal-alias-subpaths.html index 4af0366..6f99871 100644 --- a/docs/namespaces/drupal-alias-subpaths.html +++ b/docs/namespaces/drupal-alias-subpaths.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -119,7 +119,7 @@

    Fil

    - +
    On this page @@ -270,7 +270,7 @@

    - +

    diff --git a/docs/namespaces/drupal.html b/docs/namespaces/drupal.html index f7c2599..c522367 100644 --- a/docs/namespaces/drupal.html +++ b/docs/namespaces/drupal.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/packages/Application.html b/docs/packages/Application.html index 8e9d84b..ba5e58c 100644 --- a/docs/packages/Application.html +++ b/docs/packages/Application.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    Application

    - +

    Table of Contents @@ -178,7 +178,7 @@

    - +

    @@ -201,12 +201,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -214,13 +214,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -237,12 +237,12 @@

    Implements hook_decoupled_router_info_alter().

    - + alias_subpaths_decoupled_router_decoupled_router_info_alter(mixed &$output, mixed $context) : mixed - +

    Parameters
    @@ -250,20 +250,20 @@
    Parameters
    : mixed
    - +
    $context : mixed
    - +
    - - + +

    @@ -280,12 +280,12 @@

    Implements hook_preprocess_node().

    - + alias_subpaths_examples_preprocess_node(array<string|int, mixed> &$variables) : mixed - +

    Parameters
    @@ -293,13 +293,13 @@
    Parameters
    : array<string|int, mixed>
    - +
    - - + +

    @@ -398,7 +398,7 @@
    Parameters
    - +
    On this page @@ -412,7 +412,7 @@
    Parameters
    - +
  • Functions
    • diff --git a/docs/packages/Drupal-alias-subpaths-decoupled-router.html b/docs/packages/Drupal-alias-subpaths-decoupled-router.html index 41ebe10..2887e49 100644 --- a/docs/packages/Drupal-alias-subpaths-decoupled-router.html +++ b/docs/packages/Drupal-alias-subpaths-decoupled-router.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

      @@ -91,12 +91,12 @@

  • - +

    Reports

    Deprecated

    @@ -122,7 +122,7 @@

    Fil

    - +
    On this page @@ -257,7 +257,7 @@

    - +

    diff --git a/docs/packages/Drupal-alias-subpaths-decoupled.html b/docs/packages/Drupal-alias-subpaths-decoupled.html index 16e001e..2cb6d84 100644 --- a/docs/packages/Drupal-alias-subpaths-decoupled.html +++ b/docs/packages/Drupal-alias-subpaths-decoupled.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -121,7 +121,7 @@

    Fil

    - +
    On this page @@ -256,7 +256,7 @@

    - +

    diff --git a/docs/packages/Drupal-alias-subpaths.html b/docs/packages/Drupal-alias-subpaths.html index 25388bd..c83c625 100644 --- a/docs/packages/Drupal-alias-subpaths.html +++ b/docs/packages/Drupal-alias-subpaths.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +
    On this page @@ -255,7 +255,7 @@

    - +

    diff --git a/docs/packages/Drupal-alias.html b/docs/packages/Drupal-alias.html index e697c9f..d0310f5 100644 --- a/docs/packages/Drupal-alias.html +++ b/docs/packages/Drupal-alias.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -119,7 +119,7 @@

    Fil

    - +
    On this page @@ -254,7 +254,7 @@

    - +

    diff --git a/docs/packages/Drupal.html b/docs/packages/Drupal.html index 5bf425a..d0301d6 100644 --- a/docs/packages/Drupal.html +++ b/docs/packages/Drupal.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    - +
    On this page @@ -253,7 +253,7 @@

    - +

    diff --git a/docs/packages/default.html b/docs/packages/default.html index 18c49a0..c8b1b29 100644 --- a/docs/packages/default.html +++ b/docs/packages/default.html @@ -3,7 +3,7 @@ Drupal Alias Subpaths - + @@ -62,19 +62,19 @@

    @@ -91,12 +91,12 @@

    - +

    Reports

    Deprecated

    @@ -118,7 +118,7 @@

    Fil

    - +
    On this page @@ -254,7 +254,7 @@

    - +

    diff --git a/docs/reports/deprecated.html b/docs/reports/deprecated.html index a723de5..9e74a0d 100644 --- a/docs/reports/deprecated.html +++ b/docs/reports/deprecated.html @@ -4,7 +4,7 @@ Drupal Alias Subpaths » Deprecated elements - + @@ -63,19 +63,19 @@

    @@ -92,12 +92,12 @@

    - +

    Reports

    Deprecated

    @@ -120,7 +120,7 @@

    Fil

    - +

    Reports

    Deprecated

    @@ -120,9 +120,9 @@

    Fil

    Errors

    - +
    No errors have been found in this project.
    - +

    diff --git a/docs/reports/markers.html b/docs/reports/markers.html index 5b9062e..ce63f26 100644 --- a/docs/reports/markers.html +++ b/docs/reports/markers.html @@ -4,7 +4,7 @@ Drupal Alias Subpaths » Markers - + @@ -63,19 +63,19 @@

    @@ -92,12 +92,12 @@

    - +

    Reports

    Deprecated

    @@ -123,7 +123,7 @@

    Markers

    No markers have been found in this project.
    - +

    diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..d91b522 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,14 @@ +includes: + - vendor/mglaman/phpstan-drupal/extension.neon + - vendor/tomasvotruba/cognitive-complexity/config/extension.neon + +parameters: + level: 2 + paths: + - src/ + cognitive_complexity: + class: 50 + function: 12 + dependency_tree: 150 + ignoreErrors: + - '#Unsafe usage of new static\(\)#' diff --git a/src/AliasSubpathsAliasManager.php b/src/AliasSubpathsAliasManager.php index 51e75c8..57f7a80 100644 --- a/src/AliasSubpathsAliasManager.php +++ b/src/AliasSubpathsAliasManager.php @@ -20,7 +20,7 @@ class AliasSubpathsAliasManager { * * @var \Drupal\path_alias\AliasManagerInterface */ - protected $aliasManager; + protected AliasManagerInterface $aliasManager; /** * The context manager service. @@ -30,6 +30,8 @@ class AliasSubpathsAliasManager { private ContextManager $contextManager; /** + * Service for unlocalize URLs. + * * @var \Drupal\alias_subpaths\UnlocalizeUrlService */ private UnlocalizeUrlService $unlocalizeUrlService; @@ -42,6 +44,7 @@ class AliasSubpathsAliasManager { * @param \Drupal\alias_subpaths\ContextManager $context_manager * The context manager service. * @param \Drupal\alias_subpaths\UnlocalizeUrlService $unlocalize_url_service + * The unlocalize URL service. */ public function __construct(AliasManagerInterface $alias_manager, ContextManager $context_manager, UnlocalizeUrlService $unlocalize_url_service) { $this->aliasManager = $alias_manager; @@ -63,6 +66,7 @@ public function __construct(AliasManagerInterface $alias_manager, ContextManager * * @return string * The resolved system path. + * * @throws \Drupal\alias_subpaths\Exception\NotRouteApplicableException * Thrown when the route is not applicable. */ diff --git a/src/AliasSubpathsManager.php b/src/AliasSubpathsManager.php index 0fae3ec..ce433fe 100644 --- a/src/AliasSubpathsManager.php +++ b/src/AliasSubpathsManager.php @@ -120,6 +120,9 @@ private function getRouteInfo($path, $internal_path) { return $routeInfo; } + /** + * Returns Context Manager. + */ public function getContextManager() { return $this->contextManager; } diff --git a/src/AliasSubpathsRouterManager.php b/src/AliasSubpathsRouterManager.php index d40c9a3..270d490 100644 --- a/src/AliasSubpathsRouterManager.php +++ b/src/AliasSubpathsRouterManager.php @@ -55,15 +55,17 @@ public function __construct( public function getRouteInfo($path): array { try { $route = $this->router->match($path); - } catch (ResourceNotFoundException $e) { + } + catch (ResourceNotFoundException $e) { return [ 'name' => self::SYSTEM_404, - 'arguments' => [] + 'arguments' => [], ]; - } catch (MethodNotAllowedException $e) { + } + catch (MethodNotAllowedException $e) { return [ 'name' => self::SYSTEM_405, - 'arguments' => [] + 'arguments' => [], ]; } $arguments = []; diff --git a/src/ContextManager.php b/src/ContextManager.php index 9e7ebd0..dfc4cff 100644 --- a/src/ContextManager.php +++ b/src/ContextManager.php @@ -28,6 +28,8 @@ class ContextManager { private ContextBagFactory $contextBagFactory; /** + * Service for unlocalize URLs. + * * @var \Drupal\alias_subpaths\UnlocalizeUrlService */ private UnlocalizeUrlService $unlocalizeUrlService; @@ -38,10 +40,11 @@ class ContextManager { * @param \Drupal\alias_subpaths\ContextBagFactory $contextBagFactory * The factory service used to create new context bags. * @param \Drupal\alias_subpaths\UnlocalizeUrlService $unlocalizeUrlService + * The unlocalize URL service. */ public function __construct( ContextBagFactory $contextBagFactory, - UnlocalizeUrlService $unlocalizeUrlService + UnlocalizeUrlService $unlocalizeUrlService, ) { $this->contextBag = []; $this->contextBagFactory = $contextBagFactory; diff --git a/src/EventSubscriber/ArgumentProcessorEventSubscriber.php b/src/EventSubscriber/ArgumentProcessorEventSubscriber.php index 81a81b4..4eb8503 100644 --- a/src/EventSubscriber/ArgumentProcessorEventSubscriber.php +++ b/src/EventSubscriber/ArgumentProcessorEventSubscriber.php @@ -65,6 +65,7 @@ class ArgumentProcessorEventSubscriber implements EventSubscriberInterface { * @param \Drupal\Core\Routing\AdminContext $admin_context * The admin context service. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler + * The Module Handler. */ public function __construct( CurrentRouteMatch $current_route_match, diff --git a/src/PathProcessor/PathProcessorAliasSubpaths.php b/src/PathProcessor/PathProcessorAliasSubpaths.php index 2b76eb3..ad170b1 100644 --- a/src/PathProcessor/PathProcessorAliasSubpaths.php +++ b/src/PathProcessor/PathProcessorAliasSubpaths.php @@ -4,7 +4,9 @@ use Drupal\alias_subpaths\AliasSubpathsAliasManager; use Drupal\alias_subpaths\Exception\NotRouteApplicableException; +use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\PathProcessor\InboundPathProcessorInterface; +use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; /** @@ -19,14 +21,38 @@ class PathProcessorAliasSubpaths implements InboundPathProcessorInterface { */ private AliasSubpathsAliasManager $aliasSubpathsAliasManager; + /** + * Module handler. + * + * @var \Drupal\Core\Extension\ModuleHandlerInterface + */ + private ModuleHandlerInterface $moduleHandler; + + /** + * Dependency injection. + * + * @var \Symfony\Component\DependencyInjection\ContainerInterface + */ + private ContainerInterface $container; + /** * Constructs a new PathProcessorAliasSubpaths. * * @param \Drupal\alias_subpaths\AliasSubpathsAliasManager $alias_subpaths_url_resolver * The alias subpaths alias manager service. + * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler + * The Module Handler service. + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container + * For dependency injection. */ - public function __construct(AliasSubpathsAliasManager $alias_subpaths_url_resolver) { + public function __construct( + AliasSubpathsAliasManager $alias_subpaths_url_resolver, + ModuleHandlerInterface $module_handler, + ContainerInterface $container, + ) { $this->aliasSubpathsAliasManager = $alias_subpaths_url_resolver; + $this->moduleHandler = $module_handler; + $this->container = $container; } /** @@ -37,14 +63,16 @@ public function processInbound($path, Request $request) { return $path; } - if (\Drupal::moduleHandler()->moduleExists('redirect')) { - $redirectRespository = \Drupal::service('redirect.repository'); - $sourcePath = trim($path, '/'); - $redirects = $redirectRespository->findBySourcePath($sourcePath); + if ($this->moduleHandler->moduleExists('redirect')) { + if ($this->container->has('redirect.repository')) { + $redirectRepository = $this->container->get('redirect.repository'); + $sourcePath = trim($path, '/'); + $redirects = $redirectRepository->findBySourcePath($sourcePath); - $redirect = reset($redirects); - if ($redirect) { - return $path; + $redirect = reset($redirects); + if ($redirect) { + return $path; + } } } try { diff --git a/src/UnlocalizeUrlService.php b/src/UnlocalizeUrlService.php index 140ef2e..9ddd9d4 100644 --- a/src/UnlocalizeUrlService.php +++ b/src/UnlocalizeUrlService.php @@ -6,21 +6,32 @@ use Drupal\Core\Language\LanguageManagerInterface; use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl; +/** + * Service for unlocalize URLs. + */ class UnlocalizeUrlService { /** + * The language manager service. + * * @var \Drupal\Core\Language\LanguageManagerInterface */ private LanguageManagerInterface $languageManager; /** + * The config factory service. + * * @var \Drupal\Core\Config\ConfigFactoryInterface */ private ConfigFactoryInterface $config; /** + * Constructs a new UnlocalizeUrlService. + * * @param \Drupal\Core\Language\LanguageManagerInterface $languageManager + * The Language Manager service. * @param \Drupal\Core\Config\ConfigFactoryInterface $config + * The config factory service. */ public function __construct( LanguageManagerInterface $languageManager, @@ -30,7 +41,15 @@ public function __construct( $this->config = $config; } - + /** + * Function for unlocalize a path. + * + * @param string $path + * The path to unlocalize. + * + * @return string + * The unlocalized path. + */ public function unlocalizeUrl($path) { $config = $this->config->get('language.negotiation')->get('url'); @@ -51,5 +70,4 @@ public function unlocalizeUrl($path) { return $path; } - }