protected function validateEntityIdFile()
    {
        $field = 'entity_id';

        if ($this->isExcluded($field)) {
            return null;
        }

        $value = $this->getSubmitted($field);

        if (!isset($value)) {
            $this->unsetSubmitted($field);
            return null;
        }

        $label = $this->translation->text('Entity ID');

        if (!is_numeric($value)) {
            $this->setErrorInteger($field, $label);
            return false;
        }

        if (strlen($value) > 10) {
            $this->setErrorLengthRange($field, $label, 0, 10);
            return false;
        }

        return true;
    }
protected function validateEntityIdFile()
    {
        $field = 'entity_id';

        if ($this->isExcluded($field)) {
            return null;
        }

        $value = $this->getSubmitted($field);

        if (!isset($value)) {
            $this->unsetSubmitted($field);
            return null;
        }

        $label = $this->translation->text('Entity ID');

        if (!is_numeric($value)) {
            $this->setErrorInteger($field, $label);
            return false;
        }

        if (strlen($value) > 10) {
            $this->setErrorLengthRange($field, $label, 0, 10);
            return false;
        }

        return true;
    }
protected function validateEntityIdFile ( ) { $ field = 'entity_id' ; if ( $ this -> isExcluded ( $ field ) ) { return null ; } $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } $ label = $ this -> translation -> text ( 'Entity ID' ) ; if ( ! is_numeric ( $ value ) ) { $ this -> setErrorInteger ( $ field , $ label ) ; return false ; } if ( strlen ( $ value ) > 10 ) { $ this -> setErrorLengthRange ( $ field , $ label , 0 , 10 ) ; return false ; } return true ; }
Validates entity ID
@return bool|null
Validates entity ID