public function convertRenditions(array $data = null)
    {
        return array_filter(
            array_map(
                [$this, 'convertRendition'],
                array_filter(
                    $data,
                    'is_array'
                )
            ),
            function ($item) {
                // @TODO once a logger is available we should log an INFO message if the rendition could not be converted
                return !empty($item);
            }
        );
    }
public function convertRenditions(array $data = null)
    {
        return array_filter(
            array_map(
                [$this, 'convertRendition'],
                array_filter(
                    $data,
                    'is_array'
                )
            ),
            function ($item) {
                // @TODO once a logger is available we should log an INFO message if the rendition could not be converted
                return !empty($item);
            }
        );
    }
public function convertRenditions ( array $ data = null ) { return array_filter ( array_map ( [ $ this , 'convertRendition' ] , array_filter ( $ data , 'is_array' ) ) , function ( $ item ) { // @TODO once a logger is available we should log an INFO message if the rendition could not be converted return ! empty ( $ item ) ; } ) ; }
Convert given input data to a list of RenditionData objects

@param array|null $data
@return RenditionData[]
Convert given input data to a list of RenditionData objects