PathAliasInterface.php

Same filename in other branches
  1. 9 core/modules/path_alias/src/PathAliasInterface.php
  2. 10 core/modules/path_alias/src/PathAliasInterface.php
  3. 11.x 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

Title Deprecated Summary
PathAliasInterface Provides an interface defining a path_alias entity.

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