You are here

AddForm.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/path/src/Form/AddForm.php

Namespace

Drupal\path\Form

File

core/modules/path/src/Form/AddForm.php
View source
<?php

/**
 * @file
 * Contains \Drupal\path\Form\AddForm.
 */
namespace Drupal\path\Form;

use Drupal\Core\Language\LanguageInterface;

/**
 * Provides the path add form.
 */
class AddForm extends PathFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'path_admin_add';
  }

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

}

Classes

Namesort descending Description
AddForm Provides the path add form.