Drupal 8  8.0.2
Tags Class Reference

Static Public Member Functions

static explode ($tags)
 
static encode ($tag)
 
static implode ($tags)
 

Detailed Description

Defines a class that can explode and implode tags.

Member Function Documentation

static encode (   $tag)
static

Encodes a tag string, taking care of special cases like commas and quotes.

Parameters
string$tagA tag string.
Returns
string The encoded string.

Referenced by EntityAutocomplete\getEntityLabels(), EntityAutocompleteMatcher\getMatches(), and EntityAutocompleteTest\testEntityReferenceAutocompletion().

Here is the caller graph for this function:

static explode (   $tags)
static

Explodes a string of tags into an array.

Parameters
string$tagsA string to explode.
Returns
array An array of tags.

Referenced by ViewExecutable\buildThemeFunctions(), TagsTest\explodeTags(), EntityAutocompleteController\handleAutocomplete(), UnpublishByKeywordNode\submitConfigurationForm(), UnpublishByKeywordComment\submitConfigurationForm(), and TagsTest\testImplodeTags().

Here is the caller graph for this function:

static implode (   $tags)
static

Implodes an array of tags into a string.

Parameters
array$tagsAn array of tags.
Returns
string The imploded string.

Referenced by UnpublishByKeywordNode\buildConfigurationForm(), UnpublishByKeywordComment\buildConfigurationForm(), TagsTest\testImplodeTags(), and TermTest\testNodeTermCreationAndDeletion().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: