function RulesDataUI::getTypeInfo

Returns the data type and parameter information for the given arguments.

This helper may be used by options list callbacks operation at data-type level, see RulesDataInputOptionsListInterface.

1 call to RulesDataUI::getTypeInfo()
RulesDataUIBundleEntity::optionsList in ui/ui.data.inc
Implements RulesDataInputOptionsListInterface::optionsList().

File

ui/ui.data.inc, line 181

Class

RulesDataUI
Default UI related class for data types.

Code

public static function getTypeInfo(RulesPlugin $element, $name) {
    $parameters = $element->pluginParameterInfo();
    return array(
        $parameters[$name]['type'],
        $parameters[$name],
    );
}