interface PathAliasInterface

Same name and namespace in other branches
  1. 11.x core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface

Provides an interface defining a path_alias entity.

Hierarchy

Expanded class hierarchy of PathAliasInterface

All classes that implement PathAliasInterface

3 files declare their use of PathAliasInterface
menu_link_content.module in core/modules/menu_link_content/menu_link_content.module
Allows administrators to create custom menu links.
MigrateUrlAliasTest.php in core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php
PathAlias.php in core/modules/path_alias/src/Entity/PathAlias.php

File

core/modules/path_alias/src/PathAliasInterface.php, line 11

Namespace

Drupal\path_alias
View source
interface PathAliasInterface extends ContentEntityInterface, EntityPublishedInterface {
  
  /**
   * Gets the source path of the alias.
   *
   * @return string
   *   The source path.
   */
  public function getPath();
  
  /**
   * Sets the source path of the alias.
   *
   * @param string $path
   *   The source path.
   *
   * @return $this
   */
  public function setPath($path);
  
  /**
   * Gets the alias for this path.
   *
   * @return string
   *   The alias for this path.
   */
  public function getAlias();
  
  /**
   * Sets the alias for this path.
   *
   * @param string $alias
   *   The path alias.
   *
   * @return $this
   */
  public function setAlias($alias);

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.