RockLobsterInc\Swv

InvalidityException::getField │ public │ CF7 1.0

Retrieves the field name where the validation error occurs.

Метод класса: InvalidityException{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$InvalidityException = new InvalidityException();
$InvalidityException->getField(): string;

Код InvalidityException::getField() CF7 6.2.4.1

public function getField(): string
{
    if ($this->cause instanceof self) {
        return $this->cause->rule->field ?? "";
    }

    return $this->rule->field ?? "";
}