public function View::splitTokens in Views Field View 8
Returns array of tokens/values to be used in child views. String containing tokens is split on either "," or "/" characters.
Parameters
string $token_string: The string of tokens to split.
Return value
array An array of split token strings.
1 call to View::splitTokens()
- View::render in src/
Plugin/ views/ field/ View.php - Renders the field.
File
- src/
Plugin/ views/ field/ View.php, line 357
Class
- View
- Plugin annotation @ViewsField("view");
Namespace
Drupal\views_field_view\Plugin\views\fieldCode
public function splitTokens($token_string) {
return preg_split('/,|\\//', $token_string);
}