AddForm::buildPath

protected AddForm::buildPath($pid)

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 22

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,
  );
}
doc_Drupal
2016-10-29 08:43:33
Comments
Leave a Comment

Please login to continue.