Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / path / src / Form / AddForm.php
1 <?php
2
3 namespace Drupal\path\Form;
4
5 use Drupal\Core\Language\LanguageInterface;
6
7 /**
8  * Provides the path add form.
9  *
10  * @internal
11  */
12 class AddForm extends PathFormBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function getFormId() {
18     return 'path_admin_add';
19   }
20
21   /**
22    * {@inheritdoc}
23    */
24   protected function buildPath($pid) {
25     return [
26       'source' => '',
27       'alias' => '',
28       'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
29       'pid' => NULL,
30     ];
31   }
32
33 }