'entity_type_id' => 'the_entity_type_id',
'_title_callback' => 'Drupal\Core\Entity\Controller\EntityController::addTitle',
])
- ->setRequirement('_entity_create_access', 'the_entity_type_id')
- ;
+ ->setRequirement('_entity_create_access', 'the_entity_type_id');
$data['no_add_form_no_bundle'] = [clone $route, $entity_type2->reveal()];
$entity_type3 = $this->getEntityType($entity_type2);
$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',
- ]]);
+ ->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()];
$entity_type6 = $this->getEntityType($entity_type5);
$route
// Unset the 'the_entity_type_id' requirement.
->setRequirements(['_entity_create_access' => $route->getRequirement('_entity_create_access')])
- ->setOption('parameters', ['the_bundle_entity_type_id' => [
- 'type' => 'entity:the_bundle_entity_type_id',
- 'with_config_overrides' => TRUE,
- ]]);
+ ->setOption('parameters', [
+ 'the_bundle_entity_type_id' => [
+ 'type' => 'entity:the_bundle_entity_type_id',
+ 'with_config_overrides' => TRUE,
+ ],
+ ]);
$data['add_form_bundle_entity_id_key_type_integer'] = [clone $route, $entity_type7->reveal(), $bundle_entity_type->reveal(), $field_storage_definition->reveal()];
return $data;