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 | * Builds formatter settings summary lines for the name field. |
| 11 | * |
| 12 | * @internal |
| 13 | */ |
| 14 | interface NameFormatterSummaryInterface { |
| 15 | |
| 16 | /** |
| 17 | * Builds settings summary lines including an example when available. |
| 18 | * |
| 19 | * @param array $settings |
| 20 | * Formatter settings. |
| 21 | * @param \Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition |
| 22 | * The name field definition. |
| 23 | * @param string $markup |
| 24 | * The configured markup mode. |
| 25 | * @param array<string, \Drupal\Core\StringTranslation\TranslatableMarkup|string>|null $linkTargets |
| 26 | * Link target options, or NULL when not applicable. |
| 27 | * |
| 28 | * @return array |
| 29 | * Summary render array lines. |
| 30 | */ |
| 31 | public function build( |
| 32 | array $settings, |
| 33 | FieldDefinitionInterface $fieldDefinition, |
| 34 | string $markup, |
| 35 | ?array $linkTargets, |
| 36 | ): array; |
| 37 | |
| 38 | } |