protected function is_queued($langcode = '') {

        if (empty($langcode)) {
            return !empty($this->queue);

        } else {
            return in_array($langcode, $this->queue);
        }
    }
protected function is_queued($langcode = '') {

        if (empty($langcode)) {
            return !empty($this->queue);

        } else {
            return in_array($langcode, $this->queue);
        }
    }
protected function is_queued ( $ langcode = '' ) { if ( empty ( $ langcode ) ) { return ! empty ( $ this -> queue ) ; } else { return in_array ( $ langcode , $ this -> queue ) ; } }
Checks if the given language is queued or if the queue is empty

@example $installer->is_queued('es');    // is Spanish going to be installed?
@example $installer->is_queued();        // is there a language queued?

@param string $langcode language code or empty string for "any"
@return boolean
Checks if the given language is queued or if the queue is empty