public static function Tags::implode in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Utility/Tags.php \Drupal\Component\Utility\Tags::implode()
Implodes an array of tags into a string.
Parameters
array $tags: An array of tags.
Return value
string The imploded string.
File
- lib/
Drupal/ Component/ Utility/ Tags.php, line 72 - Contains \Drupal\Component\Utility\Tags.
Class
- Tags
- Defines a class that can explode and implode tags.
Namespace
Drupal\Component\UtilityCode
public static function implode($tags) {
$encoded_tags = array();
foreach ($tags as $tag) {
$encoded_tags[] = self::encode($tag);
}
return implode(', ', $encoded_tags);
}