You are here

function TokenTestTrait::saveAlias in Token 8

2 calls to TokenTestTrait::saveAlias()
TokenTestTrait::saveEntityAlias in tests/src/Functional/TokenTestTrait.php
TokenURLTest::setUp in tests/src/Functional/TokenURLTest.php

File

tests/src/Functional/TokenTestTrait.php, line 62

Class

TokenTestTrait
Helper test trait with some added functions for testing.

Namespace

Drupal\Tests\token\Functional

Code

function saveAlias($source, $alias, $language = Language::LANGCODE_NOT_SPECIFIED) {
  return $this
    ->createPathAlias($source, $alias, $language);
}