Skip to content

Instantly share code, notes, and snippets.

@wimleers
Last active December 17, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wimleers/5591825 to your computer and use it in GitHub Desktop.
Save wimleers/5591825 to your computer and use it in GitHub Desktop.
http://drupal.org/node/1043198 broke this for $view_mode.
edit_field_form:
pattern: '/edit/form/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode}'
defaults:
_controller: '\Drupal\edit\EditController::fieldForm'
requirements:
_permission: 'access in-place editing'
_access_edit_entity_field: 'TRUE'
public function fieldForm(EntityInterface $entity, $field_name, $langcode, $view_mode) {
print 'called, yay!';exit;
object(Symfony\Component\HttpKernel\Exception\FlattenException)#106 (9) {
["message":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
string(0) ""
["code":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
int(0)
["previous":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
NULL
["trace":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
array(16) {
[0]=>
array(8) {
["namespace"]=>
string(0) ""
["short_class"]=>
string(0) ""
["class"]=>
string(0) ""
["type"]=>
string(0) ""
["function"]=>
string(0) ""
["file"]=>
string(94) "/Users/wim.leers/Work/drupal-duo/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php"
["line"]=>
int(83)
["args"]=>
array(0) {
}
}
[1]=>
array(8) {
["namespace"]=>
string(26) "Drupal\Core\ParamConverter"
["short_class"]=>
string(21) "ParamConverterManager"
["class"]=>
string(48) "Drupal\Core\ParamConverter\ParamConverterManager"
["type"]=>
string(2) "->"
["function"]=>
string(7) "enhance"
["file"]=>
string(112) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php"
["line"]=>
int(229)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(9) {
["_controller"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(47) "\Drupal\Core\Controller\AjaxController::content"
}
["entity_type"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(4) "node"
}
["entity"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(1) "1"
}
["field_name"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(10) "field_tags"
}
["langcode"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(3) "und"
}
["view_mode"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(4) "full"
}
["_route"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(15) "edit_field_form"
}
["_route_object"]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(31) "Symfony\Component\Routing\Route"
}
["_content"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(38) "\Drupal\edit\EditController::fieldForm"
}
}
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[2]=>
array(8) {
["namespace"]=>
string(29) "Symfony\Cmf\Component\Routing"
["short_class"]=>
string(13) "DynamicRouter"
["class"]=>
string(43) "Symfony\Cmf\Component\Routing\DynamicRouter"
["type"]=>
string(2) "->"
["function"]=>
string(19) "applyRouteEnhancers"
["file"]=>
string(112) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php"
["line"]=>
int(215)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(8) {
["_controller"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(38) "\Drupal\edit\EditController::fieldForm"
}
["entity_type"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(4) "node"
}
["entity"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(1) "1"
}
["field_name"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(10) "field_tags"
}
["langcode"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(3) "und"
}
["view_mode"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(4) "full"
}
["_route"]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(15) "edit_field_form"
}
["_route_object"]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(31) "Symfony\Component\Routing\Route"
}
}
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[3]=>
array(8) {
["namespace"]=>
string(29) "Symfony\Cmf\Component\Routing"
["short_class"]=>
string(13) "DynamicRouter"
["class"]=>
string(43) "Symfony\Cmf\Component\Routing\DynamicRouter"
["type"]=>
string(2) "->"
["function"]=>
string(12) "matchRequest"
["file"]=>
string(110) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php"
["line"]=>
int(168)
["args"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[4]=>
array(8) {
["namespace"]=>
string(29) "Symfony\Cmf\Component\Routing"
["short_class"]=>
string(11) "ChainRouter"
["class"]=>
string(41) "Symfony\Cmf\Component\Routing\ChainRouter"
["type"]=>
string(2) "->"
["function"]=>
string(7) "doMatch"
["file"]=>
string(110) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php"
["line"]=>
int(147)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(37) "/edit/form/node/1/field_tags/und/full"
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[5]=>
array(8) {
["namespace"]=>
string(29) "Symfony\Cmf\Component\Routing"
["short_class"]=>
string(11) "ChainRouter"
["class"]=>
string(41) "Symfony\Cmf\Component\Routing\ChainRouter"
["type"]=>
string(2) "->"
["function"]=>
string(12) "matchRequest"
["file"]=>
string(126) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php"
["line"]=>
int(78)
["args"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[6]=>
array(8) {
["namespace"]=>
string(42) "Symfony\Component\HttpKernel\EventListener"
["short_class"]=>
string(14) "RouterListener"
["class"]=>
string(57) "Symfony\Component\HttpKernel\EventListener\RouterListener"
["type"]=>
string(2) "->"
["function"]=>
string(15) "onKernelRequest"
["file"]=>
NULL
["line"]=>
NULL
["args"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Symfony\Component\HttpKernel\Event\GetResponseEvent"
}
}
}
[7]=>
array(8) {
["namespace"]=>
string(0) ""
["short_class"]=>
string(0) ""
["class"]=>
string(0) ""
["type"]=>
string(0) ""
["function"]=>
string(14) "call_user_func"
["file"]=>
string(123) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php"
["line"]=>
int(164)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(57) "Symfony\Component\HttpKernel\EventListener\RouterListener"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(15) "onKernelRequest"
}
}
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Symfony\Component\HttpKernel\Event\GetResponseEvent"
}
}
}
[8]=>
array(8) {
["namespace"]=>
string(33) "Symfony\Component\EventDispatcher"
["short_class"]=>
string(15) "EventDispatcher"
["class"]=>
string(49) "Symfony\Component\EventDispatcher\EventDispatcher"
["type"]=>
string(2) "->"
["function"]=>
string(10) "doDispatch"
["file"]=>
string(123) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php"
["line"]=>
int(53)
["args"]=>
array(3) {
[0]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(9) {
[0]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(53) "Drupal\Core\EventSubscriber\LanguageRequestSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(23) "onKernelRequestLanguage"
}
}
}
[1]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(42) "Drupal\Core\EventSubscriber\PathSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(26) "onKernelRequestConvertPath"
}
}
}
[2]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Drupal\Core\EventSubscriber\LegacyRequestSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(21) "onKernelRequestLegacy"
}
}
}
[3]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(31) "Drupal\Core\Ajax\AjaxSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(15) "onKernelRequest"
}
}
}
[4]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(53) "Drupal\Core\EventSubscriber\MaintenanceModeSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(35) "onKernelRequestMaintenanceModeCheck"
}
}
}
[5]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(57) "Symfony\Component\HttpKernel\EventListener\RouterListener"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(15) "onKernelRequest"
}
}
}
[6]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(50) "Drupal\Core\EventSubscriber\LegacyAccessSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(26) "onKernelRequestAccessCheck"
}
}
}
[7]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(44) "Drupal\Core\EventSubscriber\AccessSubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(26) "onKernelRequestAccessCheck"
}
}
}
[8]=>
array(2) {
[0]=>
string(5) "array"
[1]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(50) "Drupal\Core\EventSubscriber\ReverseProxySubscriber"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(32) "onKernelRequestReverseProxyCheck"
}
}
}
}
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(14) "kernel.request"
}
[2]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Symfony\Component\HttpKernel\Event\GetResponseEvent"
}
}
}
[9]=>
array(8) {
["namespace"]=>
string(33) "Symfony\Component\EventDispatcher"
["short_class"]=>
string(15) "EventDispatcher"
["class"]=>
string(49) "Symfony\Component\EventDispatcher\EventDispatcher"
["type"]=>
string(2) "->"
["function"]=>
string(8) "dispatch"
["file"]=>
string(137) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php"
["line"]=>
int(167)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(14) "kernel.request"
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Symfony\Component\HttpKernel\Event\GetResponseEvent"
}
}
}
[10]=>
array(8) {
["namespace"]=>
string(33) "Symfony\Component\EventDispatcher"
["short_class"]=>
string(29) "ContainerAwareEventDispatcher"
["class"]=>
string(63) "Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher"
["type"]=>
string(2) "->"
["function"]=>
string(8) "dispatch"
["file"]=>
string(108) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php"
["line"]=>
int(110)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(14) "kernel.request"
}
[1]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(51) "Symfony\Component\HttpKernel\Event\GetResponseEvent"
}
}
}
[11]=>
array(8) {
["namespace"]=>
string(28) "Symfony\Component\HttpKernel"
["short_class"]=>
string(10) "HttpKernel"
["class"]=>
string(39) "Symfony\Component\HttpKernel\HttpKernel"
["type"]=>
string(2) "->"
["function"]=>
string(9) "handleRaw"
["file"]=>
string(108) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php"
["line"]=>
int(73)
["args"]=>
array(2) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(1) "1"
}
}
}
[12]=>
array(8) {
["namespace"]=>
string(28) "Symfony\Component\HttpKernel"
["short_class"]=>
string(10) "HttpKernel"
["class"]=>
string(39) "Symfony\Component\HttpKernel\HttpKernel"
["type"]=>
string(2) "->"
["function"]=>
string(6) "handle"
["file"]=>
string(68) "/Users/wim.leers/Work/drupal-duo/core/lib/Drupal/Core/HttpKernel.php"
["line"]=>
int(52)
["args"]=>
array(3) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(1) "1"
}
[2]=>
array(2) {
[0]=>
string(7) "boolean"
[1]=>
bool(true)
}
}
}
[13]=>
array(8) {
["namespace"]=>
string(11) "Drupal\Core"
["short_class"]=>
string(10) "HttpKernel"
["class"]=>
string(22) "Drupal\Core\HttpKernel"
["type"]=>
string(2) "->"
["function"]=>
string(6) "handle"
["file"]=>
string(104) "/Users/wim.leers/Work/drupal-duo/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php"
["line"]=>
int(197)
["args"]=>
array(3) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
[1]=>
array(2) {
[0]=>
string(6) "string"
[1]=>
string(1) "1"
}
[2]=>
array(2) {
[0]=>
string(7) "boolean"
[1]=>
bool(true)
}
}
}
[14]=>
array(8) {
["namespace"]=>
string(28) "Symfony\Component\HttpKernel"
["short_class"]=>
string(6) "Kernel"
["class"]=>
string(35) "Symfony\Component\HttpKernel\Kernel"
["type"]=>
string(2) "->"
["function"]=>
string(6) "handle"
["file"]=>
string(60) "/Users/wim.leers/Work/drupal-duo/core/includes/bootstrap.inc"
["line"]=>
int(2003)
["args"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(6) "object"
[1]=>
string(40) "Symfony\Component\HttpFoundation\Request"
}
}
}
[15]=>
array(8) {
["namespace"]=>
string(0) ""
["short_class"]=>
string(0) ""
["class"]=>
string(0) ""
["type"]=>
string(0) ""
["function"]=>
string(21) "drupal_handle_request"
["file"]=>
string(42) "/Users/wim.leers/Work/drupal-duo/index.php"
["line"]=>
int(12)
["args"]=>
array(0) {
}
}
}
["class":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
string(60) "Symfony\Component\HttpKernel\Exception\NotFoundHttpException"
["statusCode":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
int(404)
["headers":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
array(0) {
}
["file":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
string(94) "/Users/wim.leers/Work/drupal-duo/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php"
["line":"Symfony\Component\HttpKernel\Exception\FlattenException":private]=>
int(83)
}
A fatal error occurred:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment