Skip to content
Snippets Groups Projects
Select Git revision
  • 11.x
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
40 results

AliasManagerInterface.php

  • Dave Long's avatar
    Issue #3478220 by quietone: Fix MissingParamType in modules not views
    Dave Long authored
    efee4d2f
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    AliasManagerInterface.php 1.39 KiB
    <?php
    
    namespace Drupal\path_alias;
    
    /**
     * Find an alias for a path and vice versa.
     *
     * @see \Drupal\path_alias\AliasStorageInterface
     */
    interface AliasManagerInterface {
    
      /**
       * Given the alias, return the path it represents.
       *
       * @param string $alias
       *   An alias.
       * @param string $langcode
       *   An optional language code to look up the path in.
       *
       * @return string
       *   The path represented by alias, or the alias if no path was found.
       *
       * @throws \InvalidArgumentException
       *   Thrown when the path does not start with a slash.
       */
      public function getPathByAlias($alias, $langcode = NULL);
    
      /**
       * Given a path, return the alias.
       *
       * @param string $path
       *   A path.
       * @param string $langcode
       *   An optional language code to look up the path in.
       *
       * @return string
       *   An alias that represents the path, or path if no alias was found.
       *
       * @throws \InvalidArgumentException
       *   Thrown when the path does not start with a slash.
       */
      public function getAliasByPath($path, $langcode = NULL);
    
      /**
       * Clears the static caches in alias manager and rebuilds the prefix list.
       *
       * @param string|null $source
       *   Source path of the alias that is being inserted/updated. If omitted, the
       *   entire lookup static cache will be cleared and the prefix list will be
       *   rebuilt.
       */
      public function cacheClear($source = NULL);
    
    }