RowCountException::__construct

public RowCountException::__construct($message = NULL, $code = 0, \Exception $previous = NULL) File core/lib/Drupal/Core/Database/RowCountException.php, line 10 Class RowCountException Exception thrown if a SELECT query trying to execute rowCount() on result. Namespace Drupal\Core\Database Code public function __construct($message = NULL, $code = 0, \Exception $previous = NULL) { if (!isset($message)) { $message = "rowCount() is supported for DELETE, INSERT, or UPDATE statements

RowCountException

Exception thrown if a SELECT query trying to execute rowCount() on result. Hierarchy class \Drupal\Core\Database\RowCountException extends \RuntimeException implements DatabaseException File core/lib/Drupal/Core/Database/RowCountException.php, line 8 Namespace Drupal\Core\Database Members Name Modifiers Type Description RowCountException::__construct public function

RoutingEvents::FINISHED

Name of the event fired to indicate route building has ended. This event gives modules the opportunity to perform some action after route building has completed. The event listener receives a \Symfony\Component\EventDispatcher\Event instance. See also \Symfony\Component\EventDispatcher\Event \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber \Drupal\Core\Routing\RouteBuilder::rebuild() Related topics Events Overview of event dispatch and subscribing File core/lib/Drupal/Core/Routing/Ro

RoutingEvents::DYNAMIC

Name of the event fired during route collection to allow new routes. This event is used to add new routes based upon existing routes, giving modules the opportunity to dynamically generate additional routes. The event listener method receives a \Drupal\Core\Routing\RouteBuildEvent instance. See also \Drupal\Core\Routing\RouteBuildEvent \Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber \Drupal\Core\Routing\RouteBuilder::rebuild() Related topics Events Overview of event dispatch and sub

RoutingEvents::ALTER

Name of the event fired during route collection to allow changes to routes. This event is used to process new routes before they get saved, giving modules the opportunity to alter routes provided by any other module. The event listener method receives a \Drupal\Core\Routing\RouteBuildEvent instance. See also \Symfony\Component\Routing\RouteCollection \Drupal\system\EventSubscriber\AdminRouteSubscriber \Drupal\Core\Routing\RouteBuilder::rebuild() Related topics Events Overview of event dispatch

RoutingEvents

Contains all events thrown in the core routing component. Hierarchy class \Drupal\Core\Routing\RoutingEvents File core/lib/Drupal/Core/Routing/RoutingEvents.php, line 8 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RoutingEvents::ALTER constant Name of the event fired during route collection to allow changes to routes. RoutingEvents::DYNAMIC constant Name of the event fired during route collection to allow new routes. RoutingEvents::FINI

Routing API

Route page requests to code based on URLs. Overview and terminology The Drupal routing system defines how Drupal responds to URL requests that the web server passes on to Drupal. The routing system is based on the Symfony framework. The central idea is that Drupal subsystems and modules can register routes (basically, URL paths and context); they can also register to respond dynamically to routes, for more flexibility. When Drupal receives a URL request, it will attempt to match the request to

RouteSubscriberBase::onAlterRoutes

public RouteSubscriberBase::onAlterRoutes(RouteBuildEvent $event) Delegates the route altering to self::alterRoutes(). Parameters \Drupal\Core\Routing\RouteBuildEvent $event: The route build event. File core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 35 Class RouteSubscriberBase Provides a base implementation for RouteSubscriber. Namespace Drupal\Core\Routing Code public function onAlterRoutes(RouteBuildEvent $event) { $collection = $event->getRouteCollection(); $thi

RouteSubscriberBase::getSubscribedEvents

public static RouteSubscriberBase::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority))

RouteSubscriberBase::alterRoutes

abstract protected RouteSubscriberBase::alterRoutes(RouteCollection $collection) Alters existing routes for a specific collection. Parameters \Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes. File core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 19 Class RouteSubscriberBase Provides a base implementation for RouteSubscriber. Namespace Drupal\Core\Routing Code abstract protected function alterRoutes(RouteCollection $collection);