public AliasStorageInterface::save($source, $alias, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, $pid = NULL)
Saves a path alias to the database.
@thrown \InvalidArgumentException Thrown when either the source or alias has not a starting slash.
string $source: The internal system path.
string $alias: The URL alias.
string $langcode: (optional) The language code of the alias.
int|null $pid: (optional) Unique path alias identifier.
array|false FALSE if the path could not be saved or an associative array containing the following keys:
public function save($source, $alias, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, $pid = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!AliasStorageInterface.php/function/AliasStorageInterface::save/8.1.x