$route->
setPath('/the/add/form/link/template/{the_bundle_key}'
);
$route ->
setDefault('_title_callback', 'Drupal\Core\Entity\Controller\EntityController::addBundleTitle'
) ->
setDefault('bundle_parameter', 'the_bundle_key'
) ->
setRequirement('_entity_create_access', 'the_entity_type_id:{the_bundle_key}'
);
$data['add_form_bundle_static'
] =
[clone $route,
$entity_type4->
reveal()];
$entity_type5 =
static::
getEntityType($entity_type4);
$entity_type5->
getBundleEntityType()->
willReturn('the_bundle_entity_type_id'
);
$entity_type5->
getLinkTemplate('add-form'
)->
willReturn('/the/add/form/link/template/{the_bundle_entity_type_id}'
);
$bundle_entity_type =
static::
getEntityType();
$bundle_entity_type->
entityClassImplements(FieldableEntityInterface::
class)->
willReturn(FALSE
);
$route->
setPath('/the/add/form/link/template/{the_bundle_entity_type_id}'
);
$route ->
setDefault('bundle_parameter', 'the_bundle_entity_type_id'
) ->
setRequirement('_entity_create_access', 'the_entity_type_id:{the_bundle_entity_type_id}'
) ->
setOption('parameters',
[ 'the_bundle_entity_type_id' =>
[ 'type' => 'entity:the_bundle_entity_type_id',
],
]);
$data['add_form_bundle_entity_id_key_type_null'
] =
[clone $route,
$entity_type5->
reveal(),
$bundle_entity_type->
reveal()];