interface WorkflowGroupInterface in State Machine 8
Defines the interface for workflow groups.
Hierarchy
- interface \Drupal\state_machine\Plugin\WorkflowGroup\WorkflowGroupInterface
Expanded class hierarchy of WorkflowGroupInterface
All classes that implement WorkflowGroupInterface
File
- src/
Plugin/ WorkflowGroup/ WorkflowGroupInterface.php, line 8
Namespace
Drupal\state_machine\Plugin\WorkflowGroupView source
interface WorkflowGroupInterface {
/**
* Gets the workflow group ID.
*
* @return string
* The workflow group ID.
*/
public function getId();
/**
* Gets the translated label.
*
* @return string
* The translated label.
*/
public function getLabel();
/**
* Gets the entity type ID.
*
* For example, "node" if all workflows in the group are used on content.
*
* @return string
* The entity type ID.
*/
public function getEntityTypeId();
/**
* Gets the workflow class.
*
* By default all workflows use the same class. A group can choose to
* override the class for its workflows, to satisfy advanced use cases.
*
* @return string
* The workflow class.
*/
public function getWorkflowClass();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WorkflowGroupInterface:: |
public | function | Gets the entity type ID. | 1 |
WorkflowGroupInterface:: |
public | function | Gets the workflow group ID. | 1 |
WorkflowGroupInterface:: |
public | function | Gets the translated label. | 1 |
WorkflowGroupInterface:: |
public | function | Gets the workflow class. | 1 |