Метод validateInternal

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 34–37
~/bitrix/modulestasks/lib/V2/Public/Command/AbstractCommand.php

Исходный код

PHP
protected

Сигнатура метода

protected function validateInternal(): ValidationResult

Возвращает: ValidationResult

Описание

Performs internal validation before command execution. Can be overridden in child classes to provide custom validation logic. This method provides a layer between @see \Bitrix\Main\Command\AbstractCommand and the current command implementation. Currently, it is used for logging: the method is wrapped to handle and log validation errors as needed.