class DataSourceController extends AbstractServiceController (View source)

Data Source Controller

Traits

A trait to add backend translation based on the backend users settings

Properties

protected Service $localizationService from  BackendUserTranslationTrait
protected UserService $userService from  BackendUserTranslationTrait
protected array<int,string> $supportedMediaTypes from  AbstractServiceController
protected ThrowableStorageInterface $throwableStorage2

Cant be named here $throwableStorage see https://github.com/neos/neos-development-collection/issues/3858

from  AbstractServiceController
protected $domainUserService from  AbstractServiceController
protected array<string,class-string> $viewFormatToObjectNameMap

Methods

void
initializeObject()

Set the locale according to the user settings

never
errorAction()

A preliminary error action for handling validation errors

void
processRequest(ActionRequest $request, ActionResponse $response)

Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.

array
convertException(Throwable $exception)

No description

UserId|null
getCurrentUserIdentifier()

No description

void
indexAction(string $dataSourceIdentifier, Node $node = null)

No description

static array<string,class-string>
getDataSources(ObjectManagerInterface $objectManager)

Get available data source implementations

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

never errorAction()

A preliminary error action for handling validation errors

Return Value

never

Exceptions

StopActionException

void processRequest(ActionRequest $request, ActionResponse $response)

Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.

Parameters

ActionRequest $request

The request object

ActionResponse $response

The response, modified by this handler

Return Value

void

Exceptions

StopActionException
Exception

protected array convertException(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

array

protected UserId|null getCurrentUserIdentifier()

No description

Return Value

UserId|null

void indexAction(string $dataSourceIdentifier, Node $node = null)

No description

Parameters

string $dataSourceIdentifier
Node $node

Return Value

void

Exceptions

Exception

static array<string,class-string> getDataSources(ObjectManagerInterface $objectManager)

Get available data source implementations

Parameters

ObjectManagerInterface $objectManager

Return Value

array<string,class-string>

Data source class names indexed by identifier

Exceptions

Exception