Commit 4eb367ba authored by willzyx's avatar willzyx

Fix devel_entity_test and DevelControllerTest test after https://www.drupal.org/node/2578955

parent d945c3ce
route_callbacks:
- '\Drupal\devel_entity_test\Routing\DevelEntityTestRoutes::routes'
......@@ -23,6 +23,9 @@ use Drupal\entity_test\Entity\EntityTest;
* "default" = "Drupal\entity_test\EntityTestForm",
* "delete" = "Drupal\entity_test\EntityTestDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
* },
* "translation" = "Drupal\content_translation\ContentTranslationHandler",
* "views_data" = "Drupal\entity_test\EntityTestViewsData"
* },
......
......@@ -23,6 +23,9 @@ use Drupal\entity_test\Entity\EntityTest;
* "default" = "Drupal\entity_test\EntityTestForm",
* "delete" = "Drupal\entity_test\EntityTestDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
* },
* "translation" = "Drupal\content_translation\ContentTranslationHandler",
* "views_data" = "Drupal\entity_test\EntityTestViewsData"
* },
......
......@@ -23,6 +23,9 @@ use Drupal\entity_test\Entity\EntityTest;
* "default" = "Drupal\entity_test\EntityTestForm",
* "delete" = "Drupal\entity_test\EntityTestDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
* },
* "translation" = "Drupal\content_translation\ContentTranslationHandler",
* "views_data" = "Drupal\entity_test\EntityTestViewsData"
* },
......
<?php
/**
* @file
* Contains \Drupal\devel_entity_test\Routing\RouteSubscriber.
*/
namespace Drupal\devel_entity_test\Routing;
use Symfony\Component\Routing\Route;
/**
* Subscriber for Entity Test routes.
*/
class DevelEntityTestRoutes {
/**
* Returns an array of route objects.
*
* @return \Symfony\Component\Routing\Route[]
* An array of route objects.
*/
public function routes() {
$routes = array();
$routes["entity.devel_entity_test_canonical.canonical"] = new Route(
'devel_entity_test_canonical/{devel_entity_test_canonical}',
array('_entity_view' => 'devel_entity_test_canonical.full', '_title' => 'Test full view mode'),
array('_access' => 'TRUE')
);
$routes["entity.devel_entity_test_edit.edit_form"] = new Route(
'devel_entity_test_edit/manage/{devel_entity_test_edit}',
array('_controller' => '\Drupal\entity_test\Controller\EntityTestController::testEdit', 'entity_type_id' => 'devel_entity_test_edit'),
array('_permission' => 'administer entity_test content'),
array('parameters' => array(
'devel_entity_test_edit' => array('type' => 'entity:' . 'devel_entity_test_edit'),
))
);
return $routes;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment