You are here

interface WorkflowGroupInterface in State Machine 8

Defines the interface for workflow groups.

Hierarchy

Expanded class hierarchy of WorkflowGroupInterface

All classes that implement WorkflowGroupInterface

File

src/Plugin/WorkflowGroup/WorkflowGroupInterface.php, line 8

Namespace

Drupal\state_machine\Plugin\WorkflowGroup
View 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

Namesort descending Modifiers Type Description Overrides
WorkflowGroupInterface::getEntityTypeId public function Gets the entity type ID. 1
WorkflowGroupInterface::getId public function Gets the workflow group ID. 1
WorkflowGroupInterface::getLabel public function Gets the translated label. 1
WorkflowGroupInterface::getWorkflowClass public function Gets the workflow class. 1