ValidatorTaskAdditionalFieldProvider

class \TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider

Extends
AbstractAdditionalFieldProvider

This class provides Scheduler Additional Field plugin implementation

Table of Contents

Properties

$languageFile  : string
Default language file of the extension linkvalidator

Methods

getAdditionalFields()  : array
Render additional information fields within the scheduler backend.
saveAdditionalFields()  : void
This method is used to save any additional input into the current task object if the task class matches.
validateAdditionalFields()  : bool
This method checks any additional data that is relevant to the specific task.
addMessage()  : void
Add a flash message
getLanguageService()  : LanguageService

Properties

$languageFile

Default language file of the extension linkvalidator

protected string $languageFile = 'LLL:EXT:linkvalidator/Resources/Private/Language/locallang.xlf'

Methods

getAdditionalFields()

Render additional information fields within the scheduler backend.

public getAdditionalFields(array &$taskInfo, ValidatorTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

Array information of task to return

$task : ValidatorTask|null

The task object being edited. Null when adding a task!

$schedulerModule : SchedulerModuleController

Reference to the BE module of the Scheduler

Tags

see
AdditionalFieldProviderInterface::getAdditionalFields

Return values

array —

Additional fields

saveAdditionalFields()

This method is used to save any additional input into the current task object if the task class matches.

public saveAdditionalFields(array $submittedData, AbstractTask $task) : void

Parameters

$submittedData : array

Array containing the data submitted by the user

$task : AbstractTask

Reference to the current task object

validateAdditionalFields()

This method checks any additional data that is relevant to the specific task.

public validateAdditionalFields(array &$submittedData, SchedulerModuleController $schedulerModule) : bool

If the task class is not relevant, the method is expected to return TRUE.

Parameters

$submittedData : array

Reference to the array containing the data submitted by the user

$schedulerModule : SchedulerModuleController

Reference to the BE module of the Scheduler

Return values

bool —

TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

On this page