You are here

WorkflowsField.php in Workflows Field 8

Same filename and directory in other branches
  1. 2.x 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.