Neos\Flow\Property\PropertyMappingConfigurationInterface::getConfigurationValue PHP Method

getConfigurationValue() public method

public getConfigurationValue ( string $typeConverterClassName, string $key ) : mixed
$typeConverterClassName string
$key string
return mixed configuration value for the specific $typeConverterClassName. Can be used by Type Converters to fetch converter-specific configuration
    public function getConfigurationValue($typeConverterClassName, $key);

Usage Example

 /**
  * Convert the given $source to $targetType depending on the MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE property mapping configuration
  *
  * @param string $source the raw request body
  * @param string $targetType must be "array"
  * @param array $convertedChildProperties
  * @param PropertyMappingConfigurationInterface $configuration
  * @return array
  * @api
  */
 public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
 {
     $mediaType = null;
     if ($configuration !== null) {
         $mediaType = $configuration->getConfigurationValue(MediaTypeConverterInterface::class, MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE);
     }
     if ($mediaType === null) {
         $mediaType = MediaTypeConverterInterface::DEFAULT_MEDIA_TYPE;
     }
     return $this->convertMediaType($source, $mediaType);
 }
All Usage Examples Of Neos\Flow\Property\PropertyMappingConfigurationInterface::getConfigurationValue