TbHtml::lead PHP Method

lead() public static method

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

Usage Example

Exemplo n.º 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