Contactable\SWV

MinLengthRule::matches()publicCF7 1.0

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

Хуков нет.

Возвращает

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

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

$MinLengthRule = new MinLengthRule();
$MinLengthRule->matches( $context );
$context (обязательный)
-

Код MinLengthRule::matches() CF7 6.0.6

public function matches( $context ) {
	if ( false === parent::matches( $context ) ) {
		return false;
	}

	if ( empty( $context['text'] ) ) {
		return false;
	}

	return true;
}