public function getMetadataQuery($data, $metadata)
    {
        foreach ($metadata as $searchMetadata) {
            $data[] = $this->setData(['metadata' => $searchMetadata], 'input');
        }

        return $data;
    }
public function getMetadataQuery($data, $metadata)
    {
        foreach ($metadata as $searchMetadata) {
            $data[] = $this->setData(['metadata' => $searchMetadata], 'input');
        }

        return $data;
    }
public function getMetadataQuery ( $ data , $ metadata ) { foreach ( $ metadata as $ searchMetadata ) { $ data [ ] = $ this -> setData ( [ 'metadata' => $ searchMetadata ] , 'input' ) ; } return $ data ; }
Generates Metadata search query and adds it to existing data

@param $data
@param array $metadata

@return array $data
Generates Metadata search query and adds it to existing data