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