concrete/src/Error/ErrorList/ErrorList.php
public function containsField($field)
    {
        $identifier = $field instanceof FieldInterface ? $field->getFieldElementName() : $field;
        foreach ($this->getList() as $error) {
            $field = $error->getField();
            if (is_object($field) && $field->getFieldElementName() == $identifier) {
                return true;
            }
        }

        return false;
    }
public function containsField($field)
    {
        $identifier = $field instanceof FieldInterface ? $field->getFieldElementName() : $field;
        foreach ($this->getList() as $error) {
            $field = $error->getField();
            if (is_object($field) && $field->getFieldElementName() == $identifier) {
                return true;
            }
        }

        return false;
    }
public function containsField ( $ field ) { $ identifier = $ field instanceof FieldInterface ? $ field -> getFieldElementName ( ) : $ field ; foreach ( $ this -> getList ( ) as $ error ) { $ field = $ error -> getField ( ) ; if ( is_object ( $ field ) && $ field -> getFieldElementName ( ) == $ identifier ) { return true ; } } return false ; }
Does this list contain error associated to a field?

@param \Concrete\Core\Error\ErrorList\Field\FieldInterface|string $field

@return bool
Does this list contain error associated to a field?