function workflow_get_workflow_fields_by_entity_type in Workflow 8
Finds the Workflow fields on a given Entity type.
Return value
mixed
See also
EntityFieldManager::getFieldMapByFieldType
2 calls to workflow_get_workflow_fields_by_entity_type()
- RouteSubscriber::alterRoutes in src/
Routing/ RouteSubscriber.php - Alters existing routes for a specific collection.
- WorkflowLocalTask::getDerivativeDefinitions in src/
Plugin/ Derivative/ WorkflowLocalTask.php - Gets the definition of all derivatives of a base plugin.
File
- ./
workflow.module, line 579 - Support workflows made up of arbitrary states.
Code
function workflow_get_workflow_fields_by_entity_type() {
return \Drupal::service('entity_field.manager')
->getFieldMapByFieldType('workflow');
}