ParagraphBlocksRouteSubscriber.php in Paragraph blocks 8.2
File
src/Routing/ParagraphBlocksRouteSubscriber.php
View source
<?php
namespace Drupal\paragraph_blocks\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
class ParagraphBlocksRouteSubscriber extends RouteSubscriberBase {
public function alterRoutes(RouteCollection $collection) {
$route = $collection
->get('panels.select_block');
if ($route) {
$route
->setDefaults([
'_controller' => '\\Drupal\\paragraph_blocks\\Controller\\ParagraphBlocksPanelsController::selectBlock',
]);
}
}
}