function RulesDataUIDate::render

Implements RulesDataDirectInputFormInterface::render().

Overrides RulesDataUIText::render

File

ui/ui.data.inc, line 426

Class

RulesDataUIDate
UI for dates.

Code

public static function render($value) {
    $value = is_numeric($value) ? format_date($value, 'short') : check_plain($value);
    return array(
        'content' => array(
            '#markup' => $value,
        ),
        '#attributes' => array(
            'class' => array(
                'rules-parameter-date',
            ),
        ),
    );
}