forked from Kunstmaan/KunstmaanBundlesCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KUN-8981 | (feat) url chooser performance
- Loading branch information
1 parent
ca3e636
commit 1da571a
Showing
14 changed files
with
95 additions
and
266 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/Kunstmaan/AdminBundle/Resources/public/js/admin-bundle-polyfills.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Kunstmaan/AdminBundle/Resources/public/js/admin-bundle-polyfills.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 15 additions & 15 deletions
30
src/Kunstmaan/AdminBundle/Resources/public/js/admin-bundle.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
src/Kunstmaan/AdminBundle/Resources/public/js/admin-bundle.next.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Kunstmaan/AdminBundle/Resources/public/js/admin-bundle.next.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 0 additions & 89 deletions
89
src/Kunstmaan/NodeBundle/Form/EventListener/URLChooserFormSubscriber.php
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
src/Kunstmaan/NodeBundle/Form/EventListener/URLChooserLinkTypeSubscriber.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kunstmaan\NodeBundle\Form\Type; | ||
|
||
use Symfony\Component\Form\AbstractType; | ||
use Symfony\Component\Form\Extension\Core\Type\HiddenType; | ||
use Symfony\Component\Form\FormInterface; | ||
use Symfony\Component\Form\FormView; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
class URLTypeType extends AbstractType | ||
{ | ||
public function configureOptions(OptionsResolver $resolver): void | ||
{ | ||
$resolver->setRequired('choices'); | ||
$resolver->setDefault('choices', []); | ||
$resolver->setAllowedTypes('choices', 'array'); | ||
} | ||
|
||
public function buildView(FormView $view, FormInterface $form, array $options) | ||
{ | ||
$view->vars['choices'] = $options['choices']; | ||
} | ||
|
||
public function getParent(): string | ||
{ | ||
return HiddenType::class; | ||
} | ||
} |
Oops, something went wrong.