BookmarkService uses RouteParserTrait

Internal

This class is a specific Backend implementation and is not considered part of the Public TYPO3 API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Constants

GROUP_DEFAULT  = 0
GROUP_SUPERGLOBAL  = -100

Properties

$bookmarkGroupVoter  : BookmarkGroupVoter
$bookmarkRepository  : BookmarkRepository
$bookmarkVoter  : BookmarkVoter
$iconFactory  : IconFactory
$moduleProvider  : ModuleProvider
$router  : Router
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
createBookmark()  : int|false
createGroup()  : BookmarkGroup|null
deleteBookmark()  : array{success: bool, error?: string}
deleteBookmarks()  : bool
deleteGroup()  : bool
getBookmark()  : Bookmark|null
getBookmarks()  : array<string|int, Bookmark>
getGroups()  : array<string|int, BookmarkGroup>
hasBookmark()  : bool
isEnabled()  : bool
moveBookmarks()  : bool
reorderBookmarks()  : bool
reorderGroups()  : bool
updateBookmark()  : array{success: bool, error?: string}
updateGroup()  : bool
getRouter()  : Router

Constants

GROUP_DEFAULT

public mixed GROUP_DEFAULT = 0

GROUP_SUPERGLOBAL

public mixed GROUP_SUPERGLOBAL = -100

Properties

Methods

createBookmark()

public createBookmark(string $routeIdentifier[, string $arguments = '' ][, string $title = '' ]) : int|false
Parameters
$routeIdentifier : string
$arguments : string = ''
$title : string = ''
Return values
int|false

The ID of the newly created bookmark, or false on failure

deleteBookmark()

public deleteBookmark(int $id) : array{success: bool, error?: string}
Parameters
$id : int
Return values
array{success: bool, error?: string}

deleteBookmarks()

public deleteBookmarks(array<string|int, int> $bookmarkIds) : bool
Parameters
$bookmarkIds : array<string|int, int>
Return values
bool

deleteGroup()

public deleteGroup(string $uuid) : bool
Parameters
$uuid : string
Return values
bool

hasBookmark()

public hasBookmark(string $routeIdentifier, string $arguments) : bool
Parameters
$routeIdentifier : string
$arguments : string
Return values
bool

isEnabled()

public isEnabled() : bool
Return values
bool

moveBookmarks()

public moveBookmarks(array<string|int, int> $bookmarkIds, int|string $groupId) : bool
Parameters
$bookmarkIds : array<string|int, int>
$groupId : int|string
Return values
bool

reorderBookmarks()

public reorderBookmarks(array<string|int, int> $bookmarkIds) : bool
Parameters
$bookmarkIds : array<string|int, int>
Return values
bool

reorderGroups()

public reorderGroups(array<string|int, string> $uuids) : bool
Parameters
$uuids : array<string|int, string>
Return values
bool

updateBookmark()

public updateBookmark(int $id, string $title, int|string $groupId) : array{success: bool, error?: string}
Parameters
$id : int
$title : string
$groupId : int|string
Return values
array{success: bool, error?: string}

updateGroup()

public updateGroup(string $uuid, string $label) : bool
Parameters
$uuid : string
$label : string
Return values
bool

        
On this page

Search results