WorkflowsField.php in Workflows Field 2.x
Same filename and directory in other branches
File
src/Plugin/WorkflowType/WorkflowsField.phpView 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
Name | Description |
---|---|
WorkflowsField | Workflow field Workflow. |