Commit 746b24a0 authored by Oleh Shevchuk's avatar Oleh Shevchuk Committed by Valery Lourie
Browse files

Issue #3091376 by alt.local: Fix Drupal 9 deprecations in the examples.module

parent 1fc4de47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ function examples_toolbar() {
  $links = [];
  foreach ($examples as $module => $route) {
    // Get the module info (title, description) from Drupal.
    $info = system_get_info('module', $module);
    $info = \Drupal::service('extension.list.module')->getExtensionInfo($module);

    // If there's no info, the example isn't enabled, so don't display it.
    if (!empty($info)) {