function entity_extra_field_class_string in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x templates/entity_extra_field.theme \entity_extra_field_class_string()
Format values into a class string.
Parameters
array $values: An array of class values.
string $delimiter: A space delimiter to use between concatenated classes.
Return value
string The concatenated class string.
1 call to entity_extra_field_class_string()
- template_preprocess_entity_extra_field in templates/
entity_extra_field.theme - The template entity extra field preprocess.
File
- templates/
entity_extra_field.theme, line 43 - The theme implementation for the entity extra field.
Code
function entity_extra_field_class_string(array $values, $delimiter = '-') {
return implode($delimiter, array_map('\\Drupal\\Component\\Utility\\Html::getClass', $values));
}