TbHtml::muted PHP Method

muted() public static method

Generates a muted text block.
public static muted ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string
$text string the text.
$htmlOptions array additional HTML attributes.
$tag string the HTML tag.
return string the generated text block.
    public static function muted($text, $htmlOptions = array(), $tag = 'p')
    {
        $htmlOptions['muted'] = true;
        return self::em($text, $htmlOptions, $tag);
    }

Usage Example

Example #1
0
 public function testMuted()
 {
     $I = $this->codeGuy;
     $html = TbHtml::muted('Muted text');
     $p = $I->createNode($html, 'p.muted');
     $I->seeNodeText($p, 'Muted text');
 }
All Usage Examples Of TbHtml::muted
TbHtml