wxt-8.x-3.011/modules/custom/wxt_ext/wxt_ext_media/src/Routing/RouteSubscriber.php

modules/custom/wxt_ext/wxt_ext_media/src/Routing/RouteSubscriber.php
<?php

namespace Drupal\wxt_ext_media\Routing;

use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\wxt_ext_media\Form\EntityEmbedDialog;
use Symfony\Component\Routing\RouteCollection;

/**
 * Alters route definitions.
 */
class RouteSubscriber extends RouteSubscriberBase {

  /**
   * {@inheritdoc}
   */
  protected function alterRoutes(RouteCollection $collection) {
    $route = $collection->get('entity_embed.dialog');
    if ($route) {
      $route->setDefault('_form', EntityEmbedDialog::class);
    }
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc