Verified Commit 1031e2c5 authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3582178 Remove dead code in Admin

By: quietone
By: longwave
(cherry picked from commit d09bf682)
parent f3a39065
Loading
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -7,19 +7,14 @@
use Drupal\default_admin\Helper;
use Drupal\default_admin\Settings;
use Drupal\Core\Ajax\AjaxHelperTrait;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\DependencyInjection\ClassResolverInterface;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityFormInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Site\Settings as CoreSettings;
use Drupal\Core\State\StateInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\views\Form\ViewsForm;
use Drupal\views_ui\Form\Ajax\ViewsFormInterface;
@@ -38,11 +33,6 @@ class FormHooks {
   * Constructs the form related hooks.
   */
  public function __construct(
    protected ClassResolverInterface $classResolver,
    protected readonly ModuleHandlerInterface $moduleHandler,
    protected readonly ConfigFactoryInterface $configFactory,
    protected readonly StateInterface $state,
    protected readonly MessengerInterface $messenger,
    protected RouteMatchInterface $routeMatch,
    protected AccountInterface $currentUser,
  ) {}
+51 −63

File changed.

Preview size limit exceeded, changes collapsed.

+0 −2
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
use Drupal\default_admin\Settings;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Asset\AssetQueryStringInterface;
use Drupal\Core\DependencyInjection\ClassResolverInterface;
use Drupal\Core\Extension\ThemeExtensionList;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Hook\Attribute\Hook;
@@ -29,7 +28,6 @@ public function __construct(
    protected readonly ThemeHandlerInterface $themeHandler,
    protected readonly RequestStack $requestStack,
    protected readonly AssetQueryStringInterface $assetQueryString,
    protected ClassResolverInterface $classResolver,
  ) {}

  /**
+8 −12

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ public function viewsUiDisplayTopAlter(array &$element): void {
   * Implements hook_views_pre_render().
   */
  #[Hook('views_pre_render')]
  public function preRender(ViewExecutable $view): void {
  public function viewsPreRender(ViewExecutable $view): void {
    $add_classes = static function (&$option, array $classes_to_add) {
      $classes = preg_split('/\s+/', $option);
      $classes = array_filter($classes);
Loading