protected function getFieldDepends($field)
    {
        if (!$field->dependsOn) {
            return '';
        }

        $dependsOn = is_array($field->dependsOn) ? $field->dependsOn : [$field->dependsOn];
        $dependsOn = htmlspecialchars(json_encode($dependsOn), ENT_QUOTES, 'UTF-8');
        return $dependsOn;
    }
protected function getFieldDepends($field)
    {
        if (!$field->dependsOn) {
            return '';
        }

        $dependsOn = is_array($field->dependsOn) ? $field->dependsOn : [$field->dependsOn];
        $dependsOn = htmlspecialchars(json_encode($dependsOn), ENT_QUOTES, 'UTF-8');
        return $dependsOn;
    }
protected function getFieldDepends ( $ field ) { if ( ! $ field -> dependsOn ) { return '' ; } $ dependsOn = is_array ( $ field -> dependsOn ) ? $ field -> dependsOn : [ $ field -> dependsOn ] ; $ dependsOn = htmlspecialchars ( json_encode ( $ dependsOn ) , ENT_QUOTES , 'UTF-8' ) ; return $ dependsOn ; }
Returns a HTML encoded value containing the other fields this
field depends on
@param  \Backend\Classes\FormField $field
@return string
Returns a HTML encoded value containing the other fields this field depends on