| @@ 267-277 (lines=11) @@ | ||
| 264 | * |
|
| 265 | * @return Definition |
|
| 266 | */ |
|
| 267 | private function createFormDefinition(ResourceInterface $resource) |
|
| 268 | { |
|
| 269 | $definition = new Definition($resource->getForm(), [ |
|
| 270 | new Reference('lug.resource.'.$resource->getName()), |
|
| 271 | new Reference('lug.factory.'.$resource->getName()), |
|
| 272 | ]); |
|
| 273 | ||
| 274 | $definition->addTag('form.type'); |
|
| 275 | ||
| 276 | return $definition; |
|
| 277 | } |
|
| 278 | ||
| 279 | /** |
|
| 280 | * @param ResourceInterface $resource |
|
| @@ 284-293 (lines=10) @@ | ||
| 281 | * |
|
| 282 | * @return Definition |
|
| 283 | */ |
|
| 284 | private function createChoiceFormDefinition(ResourceInterface $resource) |
|
| 285 | { |
|
| 286 | $definition = new Definition($resource->getChoiceForm(), [ |
|
| 287 | new Reference('lug.resource.'.$resource->getName()), |
|
| 288 | ]); |
|
| 289 | ||
| 290 | $definition->addTag('form.type'); |
|
| 291 | ||
| 292 | return $definition; |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * @param ResourceInterface $resource |
|