function RulesDataUIBoolean::render

Implements RulesDataDirectInputFormInterface::render().

Overrides RulesDataDirectInputFormInterface::render

File

ui/ui.data.inc, line 385

Class

RulesDataUIBoolean
UI for boolean data.

Code

public static function render($value) {
    return array(
        'content' => array(
            '#markup' => !empty($value) ? t('true') : t('false'),
        ),
        '#attributes' => array(
            'class' => array(
                'rules-parameter-boolean',
            ),
        ),
    );
}