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