You are here

public static function CountryStateType::generateSampleValue in Country, State and City Fields 8

Generates placeholder field values.

Useful when populating site with placeholder content during site building or profiling.

Parameters

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

Return value

array An associative array of values.

Overrides FieldItemBase::generateSampleValue

File

src/Plugin/Field/FieldType/CountryStateType.php, line 88

Class

CountryStateType
Plugin implementation of the 'country_state_type' field type.

Namespace

Drupal\country_state_city\Plugin\Field\FieldType

Code

public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
  $values = [];
  return $values;
}