class WorkflowTypeConfigureFormBase

Same name in other branches
  1. 8.9.x core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php \Drupal\workflows\Plugin\WorkflowTypeConfigureFormBase
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php \Drupal\workflows\Plugin\WorkflowTypeConfigureFormBase
  3. 11.x 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
PluginFormInterface::buildConfigurationForm public function Form constructor. 33
PluginFormInterface::submitConfigurationForm public function Form submission handler. 31
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.