class RulesDataUIURI in Rules 7.2
UI for the URI type parameter.
Hierarchy
- class \RulesDataUI
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
- class \RulesDataUIURI
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
Expanded class hierarchy of RulesDataUIURI
1 string reference to 'RulesDataUIURI'
- rules_rules_core_data_info in modules/
rules_core.rules.inc - Implements hook_rules_data_info() on behalf of the pseudo rules_core module.
File
- ui/
ui.data.inc, line 467 - Contains data type related forms.
View source
class RulesDataUIURI extends RulesDataUIText {
/**
* Implements RulesDataDirectInputFormInterface::inputForm().
*/
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RulesDataUI:: |
public static | function | Returns the data type and parameter information for the given arguments. | |
RulesDataUI:: |
public static | function | Renders the value with a label if an options list is available. | |
RulesDataUI:: |
public static | function | Provides the selection form for a parameter. | |
RulesDataUIText:: |
public static | function |
Overrides RulesDataUI::getDefaultMode(). Overrides RulesDataUI:: |
2 |
RulesDataUIText:: |
public static | function |
Implements RulesDataDirectInputFormInterface::render(). Overrides RulesDataDirectInputFormInterface:: |
4 |
RulesDataUIURI:: |
public static | function |
Implements RulesDataDirectInputFormInterface::inputForm(). Overrides RulesDataUIText:: |