Commit e779aaf8 authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3276006 by joseph.olstad: drupal_get_path will be removed from Drupal 10 must be replaced

parent b6540f7c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -77,7 +77,8 @@ function entity_translation_unified_form_page_attachments(array &$page) {
    if (entity_translation_unified_form_sbs_enabled('node', $bundle)) {
      // Get the CSS for the current theme.
      $theme = \Drupal::service('theme.manager')->getActiveTheme()->getName();
      if (file_exists(drupal_get_path('module', 'entity_translation_unified_form') . "/css/etuf-side-by-side-$theme.css")) {
      $path_to_etuf = \Drupal::service('extension.path.resolver')->getPath('module', 'entity_translation_unified_form');
      if (file_exists($path_to_etuf . "/css/etuf-side-by-side-$theme.css")) {
        $page['#attached']['library'][] = 'entity_translation_unified_form/etuf-' . $theme;
      }
      else {