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 | /** |
| 8 | * Translated labels and formatter output options for name components. |
| 9 | * |
| 10 | * @internal |
| 11 | */ |
| 12 | interface NameComponentMetadataInterface { |
| 13 | |
| 14 | /** |
| 15 | * Returns translated labels for core name components. |
| 16 | * |
| 17 | * @param string[]|null $intersect |
| 18 | * Keys to include; empty or NULL returns all components. |
| 19 | * |
| 20 | * @return array<string, \Drupal\Core\StringTranslation\TranslatableMarkup|string> |
| 21 | * Keyed component labels. |
| 22 | */ |
| 23 | public function getTranslations(?array $intersect = NULL): array; |
| 24 | |
| 25 | /** |
| 26 | * Labels for formatter output type identifiers. |
| 27 | * |
| 28 | * @return array<string, \Drupal\Core\StringTranslation\TranslatableMarkup|string> |
| 29 | * Keys are output type machine names; values are labels. |
| 30 | */ |
| 31 | public function getFormatterOutputTypes(): array; |
| 32 | |
| 33 | /** |
| 34 | * Select-option labels for formatter output settings. |
| 35 | * |
| 36 | * @return array<string, \Drupal\Core\StringTranslation\TranslatableMarkup|string> |
| 37 | * Options suitable for #options on form elements. |
| 38 | */ |
| 39 | public function getFormatterOutputOptions(): array; |
| 40 | |
| 41 | } |