Skip to content
Snippets Groups Projects
Commit 56d0ad9f authored by Sascha Grossenbacher's avatar Sascha Grossenbacher
Browse files

remove deprecation, add ids

parent c1e751e0
No related branches found
No related tags found
No related merge requests found
Pipeline #419328 passed
Pipeline: drupal-3458099

#419329

    ......@@ -130,8 +130,6 @@ public function getHandler(array $item, ?string $override_plugin_id = NULL): Vie
    return $handler;
    }
    }
    // @todo If it is a deprecated ID, still allow it but trigger a
    // deprecation message.
    elseif (isset($definition['deprecated_ids'][$item['plugin_id']])) {
    @trigger_error($definition['deprecated_ids'][$item['plugin_id']], E_USER_DEPRECATED);
    $handler = $this->createInstance($item['plugin_id'], $definition);
    ......@@ -139,9 +137,6 @@ public function getHandler(array $item, ?string $override_plugin_id = NULL): Vie
    return $handler;
    }
    }
    else {
    @trigger_error('Configuring a views plugin id that is not allowed is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Update the configuration or ensure that it is added to the views data id, ids or deprecated_ids for this column and handler type. See https://www.drupal.org/node/3458099', E_USER_DEPRECATED);
    }
    }
    // Finally, fall back to the default configuration suggested
    ......
    ......@@ -18,6 +18,7 @@ public function viewsDataAlter(array &$data): void {
    // respects the handler plugin ID specified in the
    // configuration.
    $data['node_field_data']['status']['filter']['id'] = 'numeric';
    $data['node_field_data']['status']['filter']['ids'] = ['boolean'];
    }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment