public static function Tags::implode
public static Tags::implode($tags)
Implodes an array of tags into a string.
Parameters
array $tags: An array of tags.
Return value
string The imploded string.
File
- core/lib/Drupal/Component/Utility/Tags.php, line 67
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Tags.php/function/Tags::implode/8.1.x