Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\name\Service; |
| 6 | |
| 7 | use Drupal\Core\Field\FieldDefinitionInterface; |
| 8 | |
| 9 | /** |
| 10 | * Sample name generation for development and field defaults. |
| 11 | */ |
| 12 | interface GeneratorInterface { |
| 13 | |
| 14 | /** |
| 15 | * Generates random sample names. |
| 16 | * |
| 17 | * @return array<int, array<string, mixed>> |
| 18 | * Name component arrays. |
| 19 | */ |
| 20 | public function generateSampleNames($limit = 3, ?FieldDefinitionInterface $field_definition = NULL); |
| 21 | |
| 22 | /** |
| 23 | * Loads preconfigured example names. |
| 24 | * |
| 25 | * @return array<int, array<string, mixed>> |
| 26 | * Name component arrays. |
| 27 | */ |
| 28 | public function loadSampleValues($limit = 3, ?FieldDefinitionInterface $field_definition = NULL, $random = FALSE); |
| 29 | |
| 30 | } |