function RulesDataUIURI::inputForm
Implements RulesDataDirectInputFormInterface::inputForm().
Overrides RulesDataUIText::inputForm
File
-
ui/
ui.data.inc, line 472
Class
- RulesDataUIURI
- UI for the URI type parameter.
Code
public static function inputForm($name, $info, $settings, RulesPlugin $element) {
$form = parent::inputForm($name, $info, $settings, $element);
$form[$name]['#rows'] = 1;
$form[$name]['#description'] = t('You may enter relative URLs like %url as well as absolute URLs like %absolute-url.', array(
'%url' => 'user/login?destination=node',
'%absolute-url' => 'https://www.drupal.org',
));
return $form;
}