LinkController
FinalYes
Attributes
- #[AsController]
Table of Contents
Properties
Methods
- __construct() : mixed
- resourceAction() : ResponseInterface
- getLanguageService() : LanguageService
- getResponseData() : array<string|int, mixed>
- Prepare response data for a JSON response
Properties
$linkService read-only
protected
LinkService
$linkService
$resourceFactory read-only
protected
ResourceFactory
$resourceFactory
Methods
__construct()
public
__construct(LinkService $linkService, ResourceFactory $resourceFactory) : mixed
Parameters
- $linkService : LinkService
- $resourceFactory : ResourceFactory
resourceAction()
public
resourceAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetResponseData()
Prepare response data for a JSON response
protected
getResponseData(bool $success[, string|null $message = null ][, string|null $link = null ]) : array<string|int, mixed>
Parameters
- $success : bool
- $message : string|null = null
- $link : string|null = null