You are here

interface WorkflowManagerInterface in State Machine 8

Defines the interface for workflow plugin managers.

Hierarchy

Expanded class hierarchy of WorkflowManagerInterface

All classes that implement WorkflowManagerInterface

File

src/WorkflowManagerInterface.php, line 10

Namespace

Drupal\state_machine
View source
interface WorkflowManagerInterface extends PluginManagerInterface {

  /**
   * Gets the grouped workflow labels.
   *
   * @param string $entity_type_id
   *   (optional) The entity type id to filter by. If provided, only workflows
   *   that belong to groups with the specified entity type will be returned.
   *
   * @return array
   *   Keys are group labels, and values are arrays of which the keys are
   *   workflow IDs and the values are workflow labels.
   */
  public function getGroupedLabels($entity_type_id = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4
WorkflowManagerInterface::getGroupedLabels public function Gets the grouped workflow labels. 1