Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 9 |
| AddForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 9 |
| getFormId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| buildPath | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
|||
| <?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, | |
| ); | |
| } | |
| } |