You are here

WorkflowTypeConfigureFormBase.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php

File

core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php
View source
<?php

namespace Drupal\workflows\Plugin;

use Drupal\Component\Plugin\PluginAwareInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;

/**
 * A base class for workflow type configuration forms.
 */
abstract class WorkflowTypeConfigureFormBase implements PluginFormInterface, PluginAwareInterface {
  use StringTranslationTrait;

  /**
   * The workflow type.
   *
   * @var \Drupal\workflows\WorkflowTypeInterface
   */
  protected $workflowType;

  /**
   * {@inheritdoc}
   */
  public function setPlugin(PluginInspectionInterface $plugin) {
    $this->workflowType = $plugin;
  }

  /**
   * {@inheritdoc}
   */
  public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
  }

}

Classes

Namesort descending Description
WorkflowTypeConfigureFormBase A base class for workflow type configuration forms.