TbHtml::addTextAlignClass PHP Method

addTextAlignClass() protected static method

Adds the text align class to the given options if applicable.
protected static addTextAlignClass ( array &$htmlOptions )
$htmlOptions array the HTML attributes.
    protected static function addTextAlignClass(&$htmlOptions)
    {
        $align = TbArray::popValue('textAlign', $htmlOptions);
        if (!empty($align)) {
            self::addCssClass('text-' . $align, $htmlOptions);
        }
    }
TbHtml