3 namespace Drupal\workflows\Plugin;
5 use Drupal\Component\Plugin\PluginAwareInterface;
6 use Drupal\Component\Plugin\PluginInspectionInterface;
7 use Drupal\Core\Form\FormStateInterface;
8 use Drupal\Core\Plugin\PluginFormInterface;
9 use Drupal\Core\StringTranslation\StringTranslationTrait;
12 * A base class for workflow type configuration forms.
14 abstract class WorkflowTypeConfigureFormBase implements PluginFormInterface, PluginAwareInterface {
16 use StringTranslationTrait;
21 * @var \Drupal\workflows\WorkflowTypeInterface
23 protected $workflowType;
28 public function setPlugin(PluginInspectionInterface $plugin) {
29 $this->workflowType = $plugin;
35 public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {