Drupal 10 compatibility

Created on 24 August 2023, about 1 year ago
Updated 10 October 2023, about 1 year ago

schemadata.info.yml

type: module
core: 8.x
#core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10

\src\Controller\SchemadataController.php

  public function explain_table($table_name = NULL) {
    $title = "Detail view of '$table_name' table";
    $request = \Drupal::request();
/*D10*/
    //if ($route = $request->attributes->get(\Symfony\Cmf\Component\Routing\RouteObjectInterface::ROUTE_OBJECT)) {
    if ($route = $request->attributes->get(\Drupal\Core\Routing\RouteObjectInterface::ROUTE_OBJECT)) {
/*<<<*/
      $route->setDefault('_title', $title);
📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024