You are here

WorkflowsField.php in Workflows Field 2.x

Same filename and directory in other branches
  1. 8 src/Plugin/WorkflowType/WorkflowsField.php

File

src/Plugin/WorkflowType/WorkflowsField.php
View source
<?php

namespace Drupal\workflows_field\Plugin\WorkflowType;

use Drupal\workflows\Plugin\WorkflowTypeBase;

/**
 * Workflow field Workflow.
 *
 * @WorkflowType(
 *   id = "workflows_field",
 *   label = @Translation("Workflows Field"),
 *   required_states = {},
 *   forms = {
 *     "configure" = "\Drupal\workflows_field\Form\WorkflowTypeConfigureForm"
 *   },
 * )
 */
class WorkflowsField extends WorkflowTypeBase {

  /**
   * {@inheritdoc}
   */
  public function getInitialState() {
    return $this
      ->getState($this->configuration['initial_state']);
  }

}

Classes

Namesort descending Description
WorkflowsField Workflow field Workflow.