Private helper function for checked, selected, and disabled.

Compares the first two arguments and if identical marks as $type.


  • Full name: checked_selected_helper
  • Defined in: cms/core/Shared/Helpers/core.php

Parameters

Parameter Type Description
$helper mixed One of the values to compare.
$current mixed (true) The other value to compare if not just true.
$echo bool Whether to echo or just return the string.
$type string The type of checked|selected|disabled we are doing.

Return Value

string

HTML attribute or empty string