Move QuickFormBase and QuickFormInterface to src/Plugin/QuickForm.
This commit is contained in:
parent
3bee8d4fb1
commit
a36bf06b4a
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Drupal\farm_quick;
|
namespace Drupal\farm_quick\Plugin\QuickForm;
|
||||||
|
|
||||||
use Drupal\Core\Access\AccessResult;
|
use Drupal\Core\Access\AccessResult;
|
||||||
use Drupal\Core\Form\FormStateInterface;
|
use Drupal\Core\Form\FormStateInterface;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Drupal\farm_quick;
|
namespace Drupal\farm_quick\Plugin\QuickForm;
|
||||||
|
|
||||||
use Drupal\Core\Form\FormStateInterface;
|
use Drupal\Core\Form\FormStateInterface;
|
||||||
use Drupal\Component\Plugin\PluginInspectionInterface;
|
use Drupal\Component\Plugin\PluginInspectionInterface;
|
|
@ -30,7 +30,7 @@ class QuickFormManager extends DefaultPluginManager {
|
||||||
'Plugin/QuickForm',
|
'Plugin/QuickForm',
|
||||||
$namespaces,
|
$namespaces,
|
||||||
$module_handler,
|
$module_handler,
|
||||||
'Drupal\farm_quick\QuickFormInterface',
|
'Drupal\farm_quick\Plugin\QuickForm\QuickFormInterface',
|
||||||
'Drupal\farm_quick\Annotation\QuickForm'
|
'Drupal\farm_quick\Annotation\QuickForm'
|
||||||
);
|
);
|
||||||
$this->alterInfo('quick_form_info');
|
$this->alterInfo('quick_form_info');
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace Drupal\farm_quick_test\Plugin\QuickForm;
|
namespace Drupal\farm_quick_test\Plugin\QuickForm;
|
||||||
|
|
||||||
use Drupal\Core\Form\FormStateInterface;
|
use Drupal\Core\Form\FormStateInterface;
|
||||||
use Drupal\farm_quick\QuickFormBase;
|
use Drupal\farm_quick\Plugin\QuickForm\QuickFormBase;
|
||||||
use Drupal\farm_quick\Traits\QuickAssetTrait;
|
use Drupal\farm_quick\Traits\QuickAssetTrait;
|
||||||
use Drupal\farm_quick\Traits\QuickLogTrait;
|
use Drupal\farm_quick\Traits\QuickLogTrait;
|
||||||
use Drupal\farm_quick\Traits\QuickQuantityTrait;
|
use Drupal\farm_quick\Traits\QuickQuantityTrait;
|
||||||
|
|
|
@ -66,7 +66,7 @@ class QuickFormTest extends KernelTestBase {
|
||||||
$this->assertEquals(1, count($quick_forms));
|
$this->assertEquals(1, count($quick_forms));
|
||||||
|
|
||||||
// Initialize the test quick form.
|
// Initialize the test quick form.
|
||||||
/** @var \Drupal\farm_quick\QuickFormInterface $test_quick_form */
|
/** @var \Drupal\farm_quick\Plugin\QuickForm\QuickFormInterface $test_quick_form */
|
||||||
$test_quick_form = $this->quickFormManager->createInstance('test');
|
$test_quick_form = $this->quickFormManager->createInstance('test');
|
||||||
|
|
||||||
// Confirm the label, description, helpText, and permissions.
|
// Confirm the label, description, helpText, and permissions.
|
||||||
|
|
Loading…
Reference in New Issue