public static function RulesDataUIBoolean::render in Rules 7.2
Implements RulesDataDirectInputFormInterface::render().
Overrides RulesDataDirectInputFormInterface::render
File
- ui/
ui.data.inc, line 385 - Contains data type related forms.
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',
),
),
);
}