You are here

PathAliasInterface.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/path_alias/src/PathAliasInterface.php

Namespace

Drupal\path_alias

File

core/modules/path_alias/src/PathAliasInterface.php
View source
<?php

namespace Drupal\path_alias;

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityPublishedInterface;

/**
 * Provides an interface defining a path_alias entity.
 */
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);

}

Interfaces

Namesort descending Description
PathAliasInterface Provides an interface defining a path_alias entity.