You are here

private function EasyBreadcrumbGeneralSettingsForm::processValuesToArray in Easy Breadcrumb 8

Same name and namespace in other branches
  1. 2.x src/Form/EasyBreadcrumbGeneralSettingsForm.php \Drupal\easy_breadcrumb\Form\EasyBreadcrumbGeneralSettingsForm::processValuesToArray()

Pre-processes the list of words for storing them as an array.

Replaces line-endings by spaces and splits words by spaces. E.g.: array('of','and').

Parameters

string $words: A string of words.

Return value

array An array of processed words.

1 call to EasyBreadcrumbGeneralSettingsForm::processValuesToArray()
EasyBreadcrumbGeneralSettingsForm::submitForm in src/Form/EasyBreadcrumbGeneralSettingsForm.php
Form submission handler.

File

src/Form/EasyBreadcrumbGeneralSettingsForm.php, line 417

Class

EasyBreadcrumbGeneralSettingsForm
Build Easy Breadcrumb settings form.

Namespace

Drupal\easy_breadcrumb\Form

Code

private function processValuesToArray($words) {
  return preg_split('/\\s+/', $words, -1, PREG_SPLIT_NO_EMPTY);
}