public function paragraph($contents, $class='') {
        $attributes = array();
        if ($class !== '') {
            $attributes['class'] = $class;
        }
        $output = html_writer::tag('p', $contents, $attributes);
        return $output;
    }
public function paragraph($contents, $class='') {
        $attributes = array();
        if ($class !== '') {
            $attributes['class'] = $class;
        }
        $output = html_writer::tag('p', $contents, $attributes);
        return $output;
    }
public function paragraph ( $ contents , $ class = '' ) { $ attributes = array ( ) ; if ( $ class !== '' ) { $ attributes [ 'class' ] = $ class ; } $ output = html_writer :: tag ( 'p' , $ contents , $ attributes ) ; return $ output ; }
Returns a P tag containing contents
@param string $contents
@param string $class
Returns a P tag containing contents