Move QuickFormBase and QuickFormInterface to src/Plugin/QuickForm.

This commit is contained in:
Michael Stenta 2021-10-27 12:01:44 -04:00
parent 3bee8d4fb1
commit a36bf06b4a
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\farm_quick;
namespace Drupal\farm_quick\Plugin\QuickForm;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Form\FormStateInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\farm_quick;
namespace Drupal\farm_quick\Plugin\QuickForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;

View File

@ -30,7 +30,7 @@ class QuickFormManager extends DefaultPluginManager {
'Plugin/QuickForm',
$namespaces,
$module_handler,
'Drupal\farm_quick\QuickFormInterface',
'Drupal\farm_quick\Plugin\QuickForm\QuickFormInterface',
'Drupal\farm_quick\Annotation\QuickForm'
);
$this->alterInfo('quick_form_info');

View File

@ -3,7 +3,7 @@
namespace Drupal\farm_quick_test\Plugin\QuickForm;
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\QuickLogTrait;
use Drupal\farm_quick\Traits\QuickQuantityTrait;

View File

@ -66,7 +66,7 @@ class QuickFormTest extends KernelTestBase {
$this->assertEquals(1, count($quick_forms));
// 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');
// Confirm the label, description, helpText, and permissions.