File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ /*
6
+ * This file is part of the CleverAge/UiProcessBundle package.
7
+ *
8
+ * Copyright (c) Clever-Age
9
+ *
10
+ * For the full copyright and license information, please view the LICENSE
11
+ * file that was distributed with this source code.
12
+ */
13
+
14
+ namespace CleverAge \UiProcessBundle \Admin \Field ;
15
+
16
+ use EasyCorp \Bundle \EasyAdminBundle \Contracts \Field \FieldInterface ;
17
+ use EasyCorp \Bundle \EasyAdminBundle \Field \FieldTrait ;
18
+
19
+ class ContextField implements FieldInterface
20
+ {
21
+ use FieldTrait;
22
+
23
+ public static function new (string $ propertyName , ?string $ label = null ): self
24
+ {
25
+ return (new self ())
26
+ ->setProperty ($ propertyName )
27
+ ->setLabel ($ label )
28
+ ->setTemplatePath ('@CleverAgeUiProcess/admin/field/array.html.twig ' );
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments