PHP Interface Sulu\Component\Tag\Request\TagRequestHandlerInterface

ファイルを表示 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
appendTagToUrl ( array $tag, string $tagsParameter = 'tags' ) : string Extends current URL with given tag.
getTags ( string $tagsParameter = 'tags' ) : string[] Determine tags from current request.
removeTagsFromUrl ( string $tagsParameter = 'tags' ) : string Remove tag from current URL.
setTagToUrl ( array $tag, string $tagsParameter = 'tags' ) : string Set tag to current URL.

Method Details

appendTagToUrl() public method

Extends current URL with given tag.
public appendTagToUrl ( array $tag, string $tagsParameter = 'tags' ) : string
$tag array will be included in the URL
$tagsParameter string GET parameter name
return string

getTags() public method

Determine tags from current request.
public getTags ( string $tagsParameter = 'tags' ) : string[]
$tagsParameter string
return string[]

removeTagsFromUrl() public method

Remove tag from current URL.
public removeTagsFromUrl ( string $tagsParameter = 'tags' ) : string
$tagsParameter string GET parameter name
return string

setTagToUrl() public method

Set tag to current URL.
public setTagToUrl ( array $tag, string $tagsParameter = 'tags' ) : string
$tag array will be included in the URL
$tagsParameter string GET parameter name
return string