code: public function wrapIsEnabled()
      {
          if ($this->getAttribute('cols')) {
              $wrap = $this->getAttribute('wrap');
              if (($wrap === 'physical') || ($wrap === 'hard')) {
                  return true;
              }
          }
  
          return false;
      }
docs: Test to see if text should be wrapped.
  
  @return bool        True if wrapping on.