RouteSubscriber.php in Smart Date 3.2.x
Namespace
Drupal\smart_date\RoutingFile
src/Routing/RouteSubscriber.phpView source
<?php
namespace Drupal\smart_date\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Conditionally provide routing information.
*/
class RouteSubscriber extends RouteSubscriberBase {
/**
* Alter existing routes as needed.
*/
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('fullcalendar_view.update_event')) {
$route
->setDefault('_controller', "\\Drupal\\smart_date\\Controller\\FullCalendarController::updateEvent");
}
}
}
Classes
Name | Description |
---|---|
RouteSubscriber | Conditionally provide routing information. |