You are here

protected static function NameFormSettingsHelperTrait::extractAllowedValues in Name Field 8

Helper function to get the allowed values.

Parameters

string $string: The string to parse.

Return value

array The parsed values.

File

src/Traits/NameFormSettingsHelperTrait.php, line 258

Class

NameFormSettingsHelperTrait
Name settings trait.

Namespace

Drupal\name\Traits

Code

protected static function extractAllowedValues($string) {
  return array_filter(array_map('trim', explode("\n", $string)));
}