You are here

public function NameGeneratorInterface::loadSampleValues in Name Field 8

Service to load preconfigured names.

Parameters

int $limit: The number to load.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition if in context.

Return value

array An array of name components.

1 method overrides NameGeneratorInterface::loadSampleValues()
NameGenerator::loadSampleValues in src/NameGenerator.php
Service to load preconfigured names.

File

src/NameGeneratorInterface.php, line 36

Class

NameGeneratorInterface
Provides an interface for the various functions required for the examples.

Namespace

Drupal\name

Code

public function loadSampleValues($limit = 3, FieldDefinitionInterface $field_definition = NULL);