質問編集履歴

2

templateの追加

2020/07/05 23:22

投稿

dauto
dauto

スコア38

test CHANGED
File without changes
test CHANGED
@@ -10,14 +10,406 @@
10
10
 
11
11
 
12
12
 
13
- 関連するEntityFormTypeは以下になります。
13
+ 関連するtemplate、EntityFormTypeは以下になります。
14
-
14
+
15
- ```Entity
15
+ ```template
16
+
17
+ {#
18
+
19
+ This file is part of EC-CUBE
20
+
21
+
22
+
23
+ Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
24
+
25
+
26
+
27
+ http://www.ec-cube.co.jp/
28
+
29
+
30
+
31
+ For the full copyright and license information, please view the LICENSE
32
+
33
+ file that was distributed with this source code.
34
+
35
+ #}
36
+
37
+ {% extends '@admin/default_frame.twig' %}
38
+
39
+
40
+
41
+ {% set menus = ['live', 'authority'] %}
42
+
43
+
44
+
45
+ {% block title %}
46
+
47
+ 配信権限登録
48
+
49
+ {% endblock %}
50
+
51
+ {% block sub_title %}
52
+
53
+ {{ 'admin.setting.system'|trans }}
54
+
55
+ {% endblock %}
56
+
57
+
58
+
59
+ {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
60
+
61
+
62
+
63
+ {% block main %}
64
+
65
+ <form name="member_form" role="form" id="member_form" method="post" action="" novalidate>
66
+
67
+ {{ form_widget(form._token) }}
68
+
69
+ <div class="c-contentsArea__cols">
70
+
71
+ <div class="c-contentsArea__primaryCol">
72
+
73
+ <div class="c-primaryCol">
74
+
75
+ <div class="card rounded border-0 mb-4">
76
+
77
+ <div class="card-header">
78
+
79
+ <div class="row">
80
+
81
+ <div class="col-8">
82
+
83
+ <span class="card-title">{{ 'admin.setting.system.member.member_registration'|trans }}</span>
84
+
85
+ </div>
86
+
87
+ <div class="col-4 text-right">
88
+
89
+ <a data-toggle="collapse" href="#memberInfo" aria-expanded="false" aria-controls="memberInfo">
90
+
91
+ <i class="fa fa-angle-up fa-lg"></i>
92
+
93
+ </a>
94
+
95
+ </div>
96
+
97
+ </div>
98
+
99
+ </div>
100
+
101
+ <div class="collapse show ec-cardCollapse" id="memberInfo">
102
+
103
+ <div class="card-body">
104
+
105
+ <div class="row mb-2">
106
+
107
+ <div class="col-3">
108
+
109
+ <span>チャンネル名</span>
110
+
111
+ <span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
112
+
113
+ </div>
114
+
115
+ <div class="col">
116
+
117
+ <div class="row">
118
+
119
+ <div class="col">
120
+
121
+ {{ form_widget(form.Channel) }}
122
+
123
+ </div>
124
+
125
+ {{ form_errors(form.Channel) }}
126
+
127
+ </div>
128
+
129
+ </div>
130
+
131
+ </div>
132
+
133
+
134
+
135
+ <div class="row mb-2">
136
+
137
+ <div class="col-3">
138
+
139
+ <span>条件</span>
140
+
141
+ <span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
142
+
143
+ </div>
144
+
145
+ <div class="col">
146
+
147
+ <div class="row">
148
+
149
+ <div class="col">
150
+
151
+ {{ form_widget(form.live_condition) }}
152
+
153
+ </div>
154
+
155
+ {{ form_errors(form.live_condition) }} </div>
156
+
157
+ </div>
158
+
159
+ </div>
160
+
161
+
162
+
163
+ <div class="row mb-2">
164
+
165
+ <div class="col-3">
166
+
167
+ <span>条件の組み合わせ</span>
168
+
169
+ <span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
170
+
171
+ </div>
172
+
173
+ <div class="col">
174
+
175
+ <div class="row">
176
+
177
+ <div class="col">
178
+
179
+ {{ form_widget(form.Combination) }}
180
+
181
+ </div>
182
+
183
+ {{ form_errors(form.Combination) }}
184
+
185
+ </div>
186
+
187
+ </div>
188
+
189
+ </div>
190
+
191
+ {# エンティティ拡張の自動出力 #}
192
+
193
+ {% for f in form if f.vars.eccube_form_options.auto_render %}
194
+
195
+ {% if f.vars.eccube_form_options.form_theme %}
196
+
197
+ {% form_theme f f.vars.eccube_form_options.form_theme %}
198
+
199
+ {{ form_row(f) }}
200
+
201
+ {% else %}
202
+
203
+ <div class="row mb-2">
204
+
205
+ <div class="col-3">
206
+
207
+ <span>{{ f.vars.label|trans }}</span>
208
+
209
+ </div>
210
+
211
+ <div class="col">
212
+
213
+ {{ form_widget(f) }}
214
+
215
+ {{ form_errors(f) }}
216
+
217
+ </div>
218
+
219
+ </div>
220
+
221
+ {% endif %}
222
+
223
+ {% endfor %}
224
+
225
+ </div>
226
+
227
+ </div>
228
+
229
+ </div>
230
+
231
+ </div>
232
+
233
+ </div>
234
+
235
+ </div>
236
+
237
+
238
+
239
+ <div class="c-conversionArea">
240
+
241
+ <div class="c-conversionArea__container">
242
+
243
+ <div class="row justify-content-between align-items-center">
244
+
245
+ <div class="col-6">
246
+
247
+ <div class="c-conversionArea__leftBlockItem">
248
+
249
+ <a class="c-baseLink" href="{{ url('admin_setting_system_member') }}">
250
+
251
+ <i class="fa fa-backward" aria-hidden="true"></i>
252
+
253
+ <span>{{ 'admin.setting.system.member_management'|trans }}</span>
254
+
255
+ </a>
256
+
257
+ </div>
258
+
259
+ </div>
260
+
261
+ <div class="col-6">
262
+
263
+ <div id="ex-conversion-action" class="row align-items-center justify-content-end">
264
+
265
+ <div class="col-auto">
266
+
267
+ <button class="btn btn-ec-conversion px-5" type="submit">{{ 'admin.common.registration'|trans }}</button>
268
+
269
+ </div>
270
+
271
+ </div>
272
+
273
+ </div>
274
+
275
+ </div>
276
+
277
+ </div>
278
+
279
+ </div>
280
+
281
+ </form>
282
+
283
+ {% endblock %}
284
+
285
+ ```
286
+
287
+
288
+
289
+ ```Entity(文字数制限に引っかかったため一部切り抜き)
16
290
 
17
291
  <?php
18
292
 
19
293
 
20
294
 
295
+ namespace Customize\Entity;
296
+
297
+
298
+
299
+ use Customize\Entity\Master\Combination;
300
+
301
+ use DateTime;
302
+
303
+ use Doctrine\ORM\Mapping as ORM;
304
+
305
+ use Eccube\Entity\Member;
306
+
307
+ use Grpc\Channel;
308
+
309
+
310
+
311
+ /**
312
+
313
+ * AuthorityRole
314
+
315
+ *
316
+
317
+ * @ORM\Table(name="dtb_live_authority_role")
318
+
319
+ * @ORM\InheritanceType("SINGLE_TABLE")
320
+
321
+ * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
322
+
323
+ * @ORM\HasLifecycleCallbacks()
324
+
325
+ * @ORM\Entity(repositoryClass="Customize\Repository\LiveAuthorityRoleRepository")
326
+
327
+ */
328
+
329
+ class LiveAuthorityRole extends \Eccube\Entity\AbstractEntity
330
+
331
+ {
332
+
333
+
334
+
335
+ /**
336
+
337
+ * @var Channel
338
+
339
+ *
340
+
341
+ * @ORM\ManyToOne(targetEntity="Customize\Entity\LiveChannel")
342
+
343
+ * @ORM\JoinColumns({
344
+
345
+ * @ORM\JoinColumn(name="channel_id", referencedColumnName="id")
346
+
347
+ * })
348
+
349
+ */
350
+
351
+ private $Channel;
352
+
353
+
354
+
355
+ /**
356
+
357
+ * Set channel.
358
+
359
+ *
360
+
361
+ * @param Channel|null $channel
362
+
363
+ *
364
+
365
+ * @return LiveAuthorityRole
366
+
367
+ */
368
+
369
+ public function setChannel(Channel $channel = null)
370
+
371
+ {
372
+
373
+ $this->Channel = $channel;
374
+
375
+
376
+
377
+ return $this;
378
+
379
+ }
380
+
381
+
382
+
383
+ /**
384
+
385
+ * Get channel.
386
+
387
+ *
388
+
389
+ * @return Channel
390
+
391
+ */
392
+
393
+ public function getChannel()
394
+
395
+ {
396
+
397
+ return $this->Channel;
398
+
399
+ }
400
+
401
+ }
402
+
403
+ ```
404
+
405
+
406
+
407
+ ```FormType
408
+
409
+ <?php
410
+
411
+
412
+
21
413
  /*
22
414
 
23
415
  * This file is part of EC-CUBE
@@ -40,670 +432,170 @@
40
432
 
41
433
 
42
434
 
43
- namespace Customize\Entity;
435
+ namespace Customize\Form\Type\Admin;
436
+
437
+
438
+
44
-
439
+ use Symfony\Bridge\Doctrine\Form\Type\EntityType;
440
+
45
-
441
+ use Symfony\Component\Form\AbstractType;
442
+
46
-
443
+ use Symfony\Component\Form\CallbackTransformer;
444
+
445
+ use Symfony\Component\Form\Extension\Core\Type\TextType;
446
+
447
+ use Symfony\Component\Form\FormBuilderInterface;
448
+
449
+ use Symfony\Component\Form\FormError;
450
+
451
+ use Symfony\Component\Form\FormEvent;
452
+
453
+ use Symfony\Component\Form\FormEvents;
454
+
455
+ use Symfony\Component\OptionsResolver\OptionsResolver;
456
+
457
+ use Symfony\Component\Validator\Constraints\Regex;
458
+
459
+ use Symfony\Component\Validator\Constraints\Length;
460
+
461
+ use Eccube\Common\EccubeConfig;
462
+
47
- use Customize\Entity\Master\Combination;
463
+ use Customize\Form\Type\Master\CombinationType;
48
-
49
- use DateTime;
464
+
50
-
51
- use Doctrine\ORM\Mapping as ORM;
465
+
52
-
53
- use Eccube\Entity\Member;
466
+
54
-
55
- use Grpc\Channel;
56
-
57
-
58
-
59
- /**
60
-
61
- * AuthorityRole
62
-
63
- *
64
-
65
- * @ORM\Table(name="dtb_live_authority_role")
66
-
67
- * @ORM\InheritanceType("SINGLE_TABLE")
68
-
69
- * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
70
-
71
- * @ORM\HasLifecycleCallbacks()
72
-
73
- * @ORM\Entity(repositoryClass="Customize\Repository\LiveAuthorityRoleRepository")
74
-
75
- */
76
-
77
- class LiveAuthorityRole extends \Eccube\Entity\AbstractEntity
467
+ class LiveAuthorityRoleType extends AbstractType
78
468
 
79
469
  {
80
470
 
81
471
  /**
82
472
 
83
- * @var int
473
+ * @var EccubeConfig
84
-
85
- *
86
-
87
- * @ORM\Column(name="id", type="integer", options={"unsigned":true})
88
-
89
- * @ORM\Id
90
-
91
- * @ORM\GeneratedValue(strategy="IDENTITY")
92
474
 
93
475
  */
94
476
 
95
- private $id;
477
+ protected $eccubeConfig;
478
+
479
+
480
+
481
+ public function __construct(EccubeConfig $eccubeConfig)
482
+
483
+ {
484
+
485
+ $this->eccubeConfig = $eccubeConfig;
486
+
487
+ }
96
488
 
97
489
 
98
490
 
99
491
  /**
100
492
 
101
- * @var Channel
493
+ * {@inheritdoc}
102
-
103
- *
104
-
105
- * @ORM\ManyToOne(targetEntity="Customize\Entity\LiveChannel")
106
-
107
- * @ORM\JoinColumns({
108
-
109
- * @ORM\JoinColumn(name="channel_id", referencedColumnName="id")
110
-
111
- * })
112
494
 
113
495
  */
114
496
 
497
+ public function buildForm(FormBuilderInterface $builder, array $options)
498
+
499
+ {
500
+
501
+ $builder
502
+
503
+ ->add('Channel', EntityType::class, [
504
+
505
+ 'class' => 'Customize\Entity\LiveChannel',
506
+
507
+ 'expanded' => false,
508
+
509
+ 'multiple' => false,
510
+
511
+ 'required' => true,
512
+
513
+ "mapped" => false,
514
+
515
+ 'choice_label' => 'name',
516
+
517
+ ])
518
+
519
+ ->add('Combination', CombinationType::class, [
520
+
521
+ 'required' => true,
522
+
523
+ ])
524
+
525
+ ->add('live_condition', TextType::class, [
526
+
527
+ 'required' => true,
528
+
529
+ 'constraints' => [
530
+
531
+ new Length(['max' => $this->eccubeConfig['eccube_stext_len']]),
532
+
533
+ ],
534
+
535
+ ])
536
+
537
+ ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
538
+
115
- private $Channel;
539
+ $form = $event->getForm();
540
+
541
+
542
+
543
+ $Channel = $form['Channel']->getData();
544
+
545
+ $condition = $form['live_condition']->getData();
546
+
547
+
548
+
549
+ if (!$Channel && !empty($condition)) {
550
+
551
+ $form['Channel']->addError(new FormError(trans('admin.setting.system.authority.authority_not_selected')));
552
+
553
+ } elseif ($Channel && empty($condition)) {
554
+
555
+ $form['live_condition']->addError(new FormError(trans('admin.setting.system.authority.deny_url_is_empty')));
556
+
557
+ }
558
+
559
+ });
560
+
561
+ }
116
562
 
117
563
 
118
564
 
119
565
  /**
120
566
 
121
- * @var Member
567
+ * {@inheritdoc}
122
-
123
- *
124
-
125
- * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
126
-
127
- * @ORM\JoinColumns({
128
-
129
- * @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
130
-
131
- * })
132
568
 
133
569
  */
134
570
 
571
+ public function configureOptions(OptionsResolver $resolver)
572
+
573
+ {
574
+
135
- private $Creator;
575
+ $resolver->setDefaults([
576
+
577
+ 'data_class' => 'Customize\Entity\LiveAuthorityRole',
578
+
579
+ ]);
580
+
581
+ }
136
582
 
137
583
 
138
584
 
139
585
  /**
140
586
 
141
- * @var Combination
587
+ * {@inheritdoc}
142
-
143
- *
144
-
145
- * @ORM\ManyToOne(targetEntity="Customize\Entity\Master\Combination")
146
-
147
- * @ORM\JoinColumns({
148
-
149
- * @ORM\JoinColumn(name="combination_id", referencedColumnName="id")
150
-
151
- * })
152
588
 
153
589
  */
154
590
 
155
- private $Combination;
156
-
157
-
158
-
159
-
160
-
161
- /**
162
-
163
- * @var string
164
-
165
- *
166
-
167
- * @ORM\Column(name="live_condition", type="string")
168
-
169
- */
170
-
171
- private $live_condition;
172
-
173
-
174
-
175
- /**
176
-
177
- * @var DateTime
178
-
179
- *
180
-
181
- * @ORM\Column(name="create_date", type="datetimetz")
182
-
183
- */
184
-
185
- private $create_date;
186
-
187
-
188
-
189
- /**
190
-
191
- * @var DateTime
192
-
193
- *
194
-
195
- * @ORM\Column(name="update_date", type="datetimetz")
196
-
197
- */
198
-
199
- private $update_date;
200
-
201
-
202
-
203
- /**
204
-
205
- * Get id.
206
-
207
- *
208
-
209
- * @return int
210
-
211
- */
212
-
213
- public function getId()
591
+ public function getBlockPrefix()
214
592
 
215
593
  {
216
594
 
217
- return $this->id;
595
+ return 'admin_live_authority_role';
218
596
 
219
597
  }
220
598
 
221
-
222
-
223
- /**
224
-
225
- * Set channel.
226
-
227
- *
228
-
229
- * @param Channel|null $channel
230
-
231
- *
232
-
233
- * @return LiveAuthorityRole
234
-
235
- */
236
-
237
- public function setChannel(Channel $channel = null)
238
-
239
- {
240
-
241
- $this->Channel = $channel;
242
-
243
-
244
-
245
- return $this;
246
-
247
- }
248
-
249
-
250
-
251
- /**
252
-
253
- * Get channel.
254
-
255
- *
256
-
257
- * @return Channel
258
-
259
- */
260
-
261
- public function getChannel()
262
-
263
- {
264
-
265
- return $this->Channel;
266
-
267
- }
268
-
269
-
270
-
271
- /**
272
-
273
- * Set creator.
274
-
275
- *
276
-
277
- * @param Member|null $creator
278
-
279
- *
280
-
281
- * @return LiveAuthorityRole
282
-
283
- */
284
-
285
- public function setCreator(Member $creator = null)
286
-
287
- {
288
-
289
- $this->Creator = $creator;
290
-
291
-
292
-
293
- return $this;
294
-
295
- }
296
-
297
-
298
-
299
- /**
300
-
301
- * Get creator.
302
-
303
- *
304
-
305
- * @return Member|null
306
-
307
- */
308
-
309
- public function getCreator()
310
-
311
- {
312
-
313
- return $this->Creator;
314
-
315
- }
316
-
317
-
318
-
319
- /**
320
-
321
- * Set combination.
322
-
323
- *
324
-
325
- * @param Combination|null $combination
326
-
327
- *
328
-
329
- * @return LiveAuthorityRole
330
-
331
- */
332
-
333
- public function setCombination(Combination $combination = null)
334
-
335
- {
336
-
337
- $this->Combination = $combination;
338
-
339
-
340
-
341
- return $this;
342
-
343
- }
344
-
345
-
346
-
347
- /**
348
-
349
- * Get combination.
350
-
351
- *
352
-
353
- * @return Combination|null
354
-
355
- */
356
-
357
- public function getCombination()
358
-
359
- {
360
-
361
- return $this->Combination;
362
-
363
- }
364
-
365
-
366
-
367
- /**
368
-
369
- * Set liveCondition.
370
-
371
- *
372
-
373
- * @param string $live_condition
374
-
375
- *
376
-
377
- * @return LiveAuthorityRole
378
-
379
- */
380
-
381
- public function setLiveCondition($live_condition)
382
-
383
- {
384
-
385
- $this->live_condition = $live_condition;
386
-
387
-
388
-
389
- return $this;
390
-
391
- }
392
-
393
-
394
-
395
- /**
396
-
397
- * Get liveCondition.
398
-
399
- *
400
-
401
- * @return string
402
-
403
- */
404
-
405
- public function getLiveCondition()
406
-
407
- {
408
-
409
- return $this->live_condition;
410
-
411
- }
412
-
413
-
414
-
415
- /**
416
-
417
- * Set createDate.
418
-
419
- *
420
-
421
- * @param DateTime $createDate
422
-
423
- *
424
-
425
- * @return LiveAuthorityRole
426
-
427
- */
428
-
429
- public function setCreateDate($createDate)
430
-
431
- {
432
-
433
- $this->create_date = $createDate;
434
-
435
-
436
-
437
- return $this;
438
-
439
- }
440
-
441
-
442
-
443
- /**
444
-
445
- * Get createDate.
446
-
447
- *
448
-
449
- * @return DateTime
450
-
451
- */
452
-
453
- public function getCreateDate()
454
-
455
- {
456
-
457
- return $this->create_date;
458
-
459
- }
460
-
461
-
462
-
463
- /**
464
-
465
- * Set updateDate.
466
-
467
- *
468
-
469
- * @param DateTime $updateDate
470
-
471
- *
472
-
473
- * @return LiveAuthorityRole
474
-
475
- */
476
-
477
- public function setUpdateDate($updateDate)
478
-
479
- {
480
-
481
- $this->update_date = $updateDate;
482
-
483
-
484
-
485
- return $this;
486
-
487
- }
488
-
489
-
490
-
491
- /**
492
-
493
- * Get updateDate.
494
-
495
- *
496
-
497
- * @return DateTime
498
-
499
- */
500
-
501
- public function getUpdateDate()
502
-
503
- {
504
-
505
- return $this->update_date;
506
-
507
- }
508
-
509
599
  }
510
600
 
511
601
  ```
512
-
513
-
514
-
515
- ```FormType
516
-
517
- <?php
518
-
519
-
520
-
521
- /*
522
-
523
- * This file is part of EC-CUBE
524
-
525
- *
526
-
527
- * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
528
-
529
- *
530
-
531
- * http://www.ec-cube.co.jp/
532
-
533
- *
534
-
535
- * For the full copyright and license information, please view the LICENSE
536
-
537
- * file that was distributed with this source code.
538
-
539
- */
540
-
541
-
542
-
543
- namespace Customize\Form\Type\Admin;
544
-
545
-
546
-
547
- use Symfony\Bridge\Doctrine\Form\Type\EntityType;
548
-
549
- use Symfony\Component\Form\AbstractType;
550
-
551
- use Symfony\Component\Form\CallbackTransformer;
552
-
553
- use Symfony\Component\Form\Extension\Core\Type\TextType;
554
-
555
- use Symfony\Component\Form\FormBuilderInterface;
556
-
557
- use Symfony\Component\Form\FormError;
558
-
559
- use Symfony\Component\Form\FormEvent;
560
-
561
- use Symfony\Component\Form\FormEvents;
562
-
563
- use Symfony\Component\OptionsResolver\OptionsResolver;
564
-
565
- use Symfony\Component\Validator\Constraints\Regex;
566
-
567
- use Symfony\Component\Validator\Constraints\Length;
568
-
569
- use Eccube\Common\EccubeConfig;
570
-
571
- use Customize\Form\Type\Master\CombinationType;
572
-
573
-
574
-
575
- class LiveAuthorityRoleType extends AbstractType
576
-
577
- {
578
-
579
- /**
580
-
581
- * @var EccubeConfig
582
-
583
- */
584
-
585
- protected $eccubeConfig;
586
-
587
-
588
-
589
- public function __construct(EccubeConfig $eccubeConfig)
590
-
591
- {
592
-
593
- $this->eccubeConfig = $eccubeConfig;
594
-
595
- }
596
-
597
-
598
-
599
- /**
600
-
601
- * {@inheritdoc}
602
-
603
- */
604
-
605
- public function buildForm(FormBuilderInterface $builder, array $options)
606
-
607
- {
608
-
609
- $builder
610
-
611
- ->add('Channel', EntityType::class, [
612
-
613
- 'class' => 'Customize\Entity\LiveChannel',
614
-
615
- 'expanded' => false,
616
-
617
- 'multiple' => false,
618
-
619
- 'required' => true,
620
-
621
- "mapped" => false,
622
-
623
- 'choice_label' => 'name',
624
-
625
- ])
626
-
627
- ->add('Combination', CombinationType::class, [
628
-
629
- 'required' => true,
630
-
631
- ])
632
-
633
- ->add('live_condition', TextType::class, [
634
-
635
- 'required' => true,
636
-
637
- 'constraints' => [
638
-
639
- new Length(['max' => $this->eccubeConfig['eccube_stext_len']]),
640
-
641
- ],
642
-
643
- ])
644
-
645
- ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
646
-
647
- $form = $event->getForm();
648
-
649
-
650
-
651
- $Channel = $form['Channel']->getData();
652
-
653
- $condition = $form['live_condition']->getData();
654
-
655
-
656
-
657
- if (!$Channel && !empty($condition)) {
658
-
659
- $form['Channel']->addError(new FormError(trans('admin.setting.system.authority.authority_not_selected')));
660
-
661
- } elseif ($Channel && empty($condition)) {
662
-
663
- $form['live_condition']->addError(new FormError(trans('admin.setting.system.authority.deny_url_is_empty')));
664
-
665
- }
666
-
667
- });
668
-
669
- }
670
-
671
-
672
-
673
- /**
674
-
675
- * {@inheritdoc}
676
-
677
- */
678
-
679
- public function configureOptions(OptionsResolver $resolver)
680
-
681
- {
682
-
683
- $resolver->setDefaults([
684
-
685
- 'data_class' => 'Customize\Entity\LiveAuthorityRole',
686
-
687
- ]);
688
-
689
- }
690
-
691
-
692
-
693
- /**
694
-
695
- * {@inheritdoc}
696
-
697
- */
698
-
699
- public function getBlockPrefix()
700
-
701
- {
702
-
703
- return 'admin_live_authority_role';
704
-
705
- }
706
-
707
- }
708
-
709
- ```

1

タグを追加しました。

2020/07/05 23:22

投稿

dauto
dauto

スコア38

test CHANGED
File without changes
test CHANGED
File without changes