public function getCustomHtmlAttrib($name)
        {
            if (!is_string($name)) {
                throw new Exception(
                    'Invalid argument: $name must be a string'
                );
            }

            if (isset($this->_customHtmlAttribs[$name])) {
                return $this->_customHtmlAttribs[$name];
            }

            return null;
        }
public function getCustomHtmlAttrib($name)
        {
            if (!is_string($name)) {
                throw new Exception(
                    'Invalid argument: $name must be a string'
                );
            }

            if (isset($this->_customHtmlAttribs[$name])) {
                return $this->_customHtmlAttribs[$name];
            }

            return null;
        }
public function getCustomHtmlAttrib ( $ name ) { if ( ! is_string ( $ name ) ) { throw new Exception ( 'Invalid argument: $name must be a string' ) ; } if ( isset ( $ this -> _customHtmlAttribs [ $ name ] ) ) { return $ this -> _customHtmlAttribs [ $ name ] ; } return null ; }
Returns a single custom HTML attributes by name

@param  string $name                 name of the HTML attribute
@return string|null                  value for the HTML attribute or null
@throws Exception    if name is not string
Returns a single custom HTML attributes by name