public function validateEmailSenderName($name)
    {
        if (mb_strlen($name, 'UTF-8') > 255) {
            $this->addError(EmailConfigurationTransformer::EMAIL_SENDER_NAME, 'Sender name length has to be less or equal to 255');
            return false;
        }

        return true;
    }
public function validateEmailSenderName($name)
    {
        if (mb_strlen($name, 'UTF-8') > 255) {
            $this->addError(EmailConfigurationTransformer::EMAIL_SENDER_NAME, 'Sender name length has to be less or equal to 255');
            return false;
        }

        return true;
    }
public function validateEmailSenderName ( $ name ) { if ( mb_strlen ( $ name , 'UTF-8' ) > 255 ) { $ this -> addError ( EmailConfigurationTransformer :: EMAIL_SENDER_NAME , 'Sender name length has to be less or equal to 255' ) ; return false ; } return true ; }
Validate sender name

@param string $name

@return bool
Validate sender name