You are here

class RouteSubscriber in Inline responsive images 8.2

Listens to the dynamic route events.

Hierarchy

  • class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of RouteSubscriber

1 string reference to 'RouteSubscriber'
inline_responsive_images.services.yml in ./inline_responsive_images.services.yml
inline_responsive_images.services.yml
1 service uses RouteSubscriber
inline_responsive_images.route_subscriber in ./inline_responsive_images.services.yml
Drupal\inline_responsive_images\Routing\RouteSubscriber

File

src/Routing/RouteSubscriber.php, line 15
Contains \Drupal\inline_responsive_images\Routing\RouteSubscriber.

Namespace

Drupal\inline_responsive_images\Routing
View source
class RouteSubscriber extends RouteSubscriberBase {

  /**
   * {@inheritdoc}
   */
  public function alterRoutes(RouteCollection $collection) {
    if ($route = $collection
      ->get('editor.image_dialog')) {
      $route
        ->setDefaults(array(
        '_form' => '\\Drupal\\inline_responsive_images\\Form\\ResponsiveEditorImageDialog',
      ));
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouteSubscriber::alterRoutes public function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 5
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1