You are here

abstract class WorkflowTypeConfigureFormBase in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php \Drupal\workflows\Plugin\WorkflowTypeConfigureFormBase
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php \Drupal\workflows\Plugin\WorkflowTypeConfigureFormBase

A base class for workflow type configuration forms.

Hierarchy

Expanded class hierarchy of WorkflowTypeConfigureFormBase

2 files declare their use of WorkflowTypeConfigureFormBase
ComplexTestTypeConfigureForm.php in core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php
ContentModerationConfigureForm.php in core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php

File

core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php, line 14

Namespace

Drupal\workflows\Plugin
View source
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) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
WorkflowTypeConfigureFormBase::$workflowType protected property The workflow type.
WorkflowTypeConfigureFormBase::setPlugin public function Sets the plugin for this object. Overrides PluginAwareInterface::setPlugin
WorkflowTypeConfigureFormBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm