| @@ 282-292 (lines=11) @@ | ||
| 279 | * |
|
| 280 | * @return Definition |
|
| 281 | */ |
|
| 282 | private function createFormDefinition(ResourceInterface $resource) |
|
| 283 | { |
|
| 284 | $definition = new Definition($resource->getForm(), [ |
|
| 285 | new Reference('lug.resource.'.$resource->getName()), |
|
| 286 | new Reference('lug.factory.'.$resource->getName()), |
|
| 287 | ]); |
|
| 288 | ||
| 289 | $definition->addTag('form.type'); |
|
| 290 | ||
| 291 | return $definition; |
|
| 292 | } |
|
| 293 | ||
| 294 | /** |
|
| 295 | * @param ResourceInterface $resource |
|
| @@ 299-308 (lines=10) @@ | ||
| 296 | * |
|
| 297 | * @return Definition |
|
| 298 | */ |
|
| 299 | private function createChoiceFormDefinition(ResourceInterface $resource) |
|
| 300 | { |
|
| 301 | $definition = new Definition($resource->getChoiceForm(), [ |
|
| 302 | new Reference('lug.resource.'.$resource->getName()), |
|
| 303 | ]); |
|
| 304 | ||
| 305 | $definition->addTag('form.type'); |
|
| 306 | ||
| 307 | return $definition; |
|
| 308 | } |
|
| 309 | ||
| 310 | /** |
|
| 311 | * @param ResourceInterface $resource |
|