public function getQueuedAttachments()
    {
        $queued = [];

        foreach ($this->getMediaFiles() as $name => $attachment) {
            if ($attachment->isQueued()) {
                $queued[$name] = $attachment;
            }
        }

        return $queued;
    }
public function getQueuedAttachments()
    {
        $queued = [];

        foreach ($this->getMediaFiles() as $name => $attachment) {
            if ($attachment->isQueued()) {
                $queued[$name] = $attachment;
            }
        }

        return $queued;
    }
public function getQueuedAttachments ( ) { $ queued = [ ] ; foreach ( $ this -> getMediaFiles ( ) as $ name => $ attachment ) { if ( $ attachment -> isQueued ( ) ) { $ queued [ $ name ] = $ attachment ; } } return $ queued ; }
Return all queued attachments that need processing.

@return array
Return all queued attachments that need processing .