| @@ 254-264 (lines=11) @@ | ||
| 251 | * |
|
| 252 | * @return Definition |
|
| 253 | */ |
|
| 254 | private function createFormDefinition(ResourceInterface $resource) |
|
| 255 | { |
|
| 256 | $definition = new Definition($resource->getForm(), [ |
|
| 257 | new Reference('lug.resource.'.$resource->getName()), |
|
| 258 | new Reference('lug.factory.'.$resource->getName()), |
|
| 259 | ]); |
|
| 260 | ||
| 261 | $definition->addTag('form.type'); |
|
| 262 | ||
| 263 | return $definition; |
|
| 264 | } |
|
| 265 | ||
| 266 | /** |
|
| 267 | * @param ResourceInterface $resource |
|
| @@ 271-280 (lines=10) @@ | ||
| 268 | * |
|
| 269 | * @return Definition |
|
| 270 | */ |
|
| 271 | private function createChoiceFormDefinition(ResourceInterface $resource) |
|
| 272 | { |
|
| 273 | $definition = new Definition($resource->getChoiceForm(), [ |
|
| 274 | new Reference('lug.resource.'.$resource->getName()), |
|
| 275 | ]); |
|
| 276 | ||
| 277 | $definition->addTag('form.type'); |
|
| 278 | ||
| 279 | return $definition; |
|
| 280 | } |
|
| 281 | ||
| 282 | /** |
|
| 283 | * @param ResourceInterface $resource |
|