Classes/Task/BatchResizeAdditionalFieldProvider.php
public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
    {
        /** @var $task \Causal\ImageAutoresize\Task\BatchResizeTask */
        $task->directories = trim($submittedData['scheduler_batchResize_directories']);
        $task->excludeDirectories = trim($submittedData['scheduler_batchResize_excludeDirectories']);
    }
public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
    {
        /** @var $task \Causal\ImageAutoresize\Task\BatchResizeTask */
        $task->directories = trim($submittedData['scheduler_batchResize_directories']);
        $task->excludeDirectories = trim($submittedData['scheduler_batchResize_excludeDirectories']);
    }
Saves given string value in task object

@param array $submittedData Contains data submitted by the user
@param \Causal\ImageAutoresize\Task\BatchResizeTask $task Reference to the current task object
@return void