src/Sulu/Component/Rest/ListBuilder/Metadata/FieldDescriptorFactory.php
private function resolveOptions($string, array $options)
    {
        foreach ($options as $key => $value) {
            $string = str_replace(':' . $key, $value, $string);
        }

        return $string;
    }
private function resolveOptions($string, array $options)
    {
        foreach ($options as $key => $value) {
            $string = str_replace(':' . $key, $value, $string);
        }

        return $string;
    }
private function resolveOptions ( $ string , array $ options ) { foreach ( $ options as $ key => $ value ) { $ string = str_replace ( ':' . $ key , $ value , $ string ) ; } return $ string ; }
Resolves options for string.

@param string $string
@param array $options

@return string
Resolves options for string .