TbHtml::lead PHP 메소드

lead() 공개 정적인 메소드

Generates a paragraph that stands out.
public static lead ( string $text, array $htmlOptions = [] ) : string
$text string the lead text.
$htmlOptions array additional HTML attributes.
리턴 string the generated paragraph.
    public static function lead($text, $htmlOptions = array())
    {
        self::addCssClass('lead', $htmlOptions);
        return self::tag('p', $htmlOptions, $text);
    }

Usage Example

예제 #1
0
 public function testLead()
 {
     $I = $this->codeGuy;
     $html = TbHtml::lead('Lead text');
     $p = $I->createNode($html, 'p.lead');
     $I->seeNodeText($p, 'Lead text');
 }
All Usage Examples Of TbHtml::lead
TbHtml