Commit 5572e7fd authored by webchick's avatar webchick

Issue #2014025 by kgoel | DmitryDrozdik: Replace drupal_container() with...

Issue #2014025 by kgoel | DmitryDrozdik: Replace drupal_container() with Drupal::service() in the taxonomy module.
parent 3e578712
......@@ -95,7 +95,7 @@ public function query() {
$def['table formula'] = $query;
}
$join = drupal_container()->get('plugin.manager.views.join')->createInstance('standard', $def);
$join = \Drupal::service('plugin.manager.views.join')->createInstance('standard', $def);
// use a short alias for this:
$alias = $def['table'] . '_' . $this->table;
......
......@@ -107,7 +107,7 @@ function taxonomy_term_feed(Term $term) {
function taxonomy_autocomplete($field_name) {
// A comma-separated list of term names entered in the autocomplete form
// element. Only the last term is used for autocompletion.
$tags_typed = drupal_container()->get('request')->query->get('q');
$tags_typed = Drupal::request()->query->get('q');
// Make sure the field exists and is a taxonomy field.
if (!($field = field_info_field($field_name)) || $field['type'] !== 'taxonomy_term_reference') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment