You are here

public static function RulesDataUI::getTypeInfo in Rules 7.2

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
Contains data type related forms.

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],
  );
}