You are here

protected function AddForm::buildPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/path/src/Form/AddForm.php \Drupal\path\Form\AddForm::buildPath()

Builds the path used by the form.

Parameters

int|null $pid: Either the unique path ID, or NULL if a new one is being created.

Overrides PathFormBase::buildPath

File

core/modules/path/src/Form/AddForm.php, line 27
Contains \Drupal\path\Form\AddForm.

Class

AddForm
Provides the path add form.

Namespace

Drupal\path\Form

Code

protected function buildPath($pid) {
  return array(
    'source' => '',
    'alias' => '',
    'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
    'pid' => NULL,
  );
}