|
@@ -38,10 +38,6 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
//
|
|
//
|
|
$this->addSource($registry, $builder);
|
|
$this->addSource($registry, $builder);
|
|
//
|
|
//
|
|
- $this->addDoleance($registry, $builder);
|
|
|
|
- //
|
|
|
|
- $this->addEtape($registry, $builder);
|
|
|
|
- //
|
|
|
|
$this->addBesoin($registry, $builder);
|
|
$this->addBesoin($registry, $builder);
|
|
//
|
|
//
|
|
$this->addReponse($registry, $builder);
|
|
$this->addReponse($registry, $builder);
|
|
@@ -224,12 +220,6 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
->map('field', $builder->fromValue('field_entite'))
|
|
->map('field', $builder->fromValue('field_entite'))
|
|
);
|
|
);
|
|
|
|
|
|
- $registry->addFieldResolver('Concernement', 'doleances',
|
|
|
|
- $builder->produce('entity_reference_revisions')
|
|
|
|
- ->map('entity', $builder->fromParent())
|
|
|
|
- ->map('field', $builder->fromValue('field_doleancer'))
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
// besoins: [Besoin]
|
|
// besoins: [Besoin]
|
|
$registry->addFieldResolver('Concernement', 'besoins',
|
|
$registry->addFieldResolver('Concernement', 'besoins',
|
|
$builder->produce('entity_reference')
|
|
$builder->produce('entity_reference')
|
|
@@ -466,64 +456,6 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
);
|
|
);
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- // ____ _
|
|
|
|
- // | _ \ ___ | | ___ __ _ _ __ ___ ___
|
|
|
|
- // | | | |/ _ \| |/ _ \/ _` | '_ \ / __/ _ \
|
|
|
|
- // | |_| | (_) | | __/ (_| | | | | (_| __/
|
|
|
|
- // |____/ \___/|_|\___|\__,_|_| |_|\___\___|
|
|
|
|
- protected function addDoleance(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Doleance', 'description',
|
|
|
|
- $builder->produce('property_path')
|
|
|
|
- ->map('type', $builder->fromValue('entity:paragraph'))
|
|
|
|
- ->map('value', $builder->fromParent())
|
|
|
|
- ->map('path', $builder->fromValue('field_description.value'))
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Doleance', 'etapes',
|
|
|
|
- $builder->produce('entity_reference_revisions')
|
|
|
|
- ->map('entity', $builder->fromParent())
|
|
|
|
- ->map('field', $builder->fromValue('field_etapes'))
|
|
|
|
- );
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // _____ _
|
|
|
|
- // | ____| |_ __ _ _ __ ___
|
|
|
|
- // | _| | __/ _` | '_ \ / _ \
|
|
|
|
- // | |___| || (_| | |_) | __/
|
|
|
|
- // |_____|\__\__,_| .__/ \___|
|
|
|
|
- // |_|
|
|
|
|
- protected function addEtape(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Etape', 'description',
|
|
|
|
- $builder->produce('property_path')
|
|
|
|
- ->map('type', $builder->fromValue('entity:paragraph'))
|
|
|
|
- ->map('value', $builder->fromParent())
|
|
|
|
- ->map('path', $builder->fromValue('field_description.value'))
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Etape', 'date',
|
|
|
|
- $builder->produce('property_path')
|
|
|
|
- ->map('type', $builder->fromValue('entity:paragraph'))
|
|
|
|
- ->map('value', $builder->fromParent())
|
|
|
|
- ->map('path', $builder->fromValue('field_date'))
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Etape', 'documents',
|
|
|
|
- $builder->produce('property_path')
|
|
|
|
- ->map('type', $builder->fromValue('entity:paragraph'))
|
|
|
|
- ->map('value', $builder->fromParent())
|
|
|
|
- ->map('path', $builder->fromValue('field_documents'))
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- $registry->addFieldResolver('Etape', 'type',
|
|
|
|
- $builder->produce('property_path')
|
|
|
|
- ->map('type', $builder->fromValue('entity:paragraph'))
|
|
|
|
- ->map('value', $builder->fromParent())
|
|
|
|
- ->map('path', $builder->fromValue('field_type.value'))
|
|
|
|
- );
|
|
|
|
- }
|
|
|
|
|
|
|
|
// ____ _
|
|
// ____ _
|
|
// | __ ) ___ ___ ___ (_)_ __
|
|
// | __ ) ___ ___ ___ (_)_ __
|