You are here

public function CustomBreadcrumbs::getMultiValues in Custom Breadcrumbs 1.x

Helper function to get values and split per one line.

Parameters

string $field: Field name.

Return value

array|false|string[] Values form field.

File

src/Entity/CustomBreadcrumbs.php, line 158

Class

CustomBreadcrumbs
Defines the custom breadcrumbs entity type.

Namespace

Drupal\custom_breadcrumbs\Entity

Code

public function getMultiValues($field) {
  return preg_split('/\\r\\n|\\r|\\n/', $this
    ->get($field));
}