public function WorkflowManagerInterface::getFields in Workflow 8
Utility function to return an array of workflow fields.
Parameters
string $entity_type_id: The content entity type to which the workflow fields are attached.
Return value
array An array of workflow field map definitions, keyed by field name. Each value is an array with two entries:
- type: The field type.
- bundles: The bundles in which the field appears, as array with entity types as keys and the array of bundle names as values.
See also
\Drupal\Core\Entity\EntityManagerInterface::getFieldMap()
\Drupal\comment\CommentManagerInterface::getFields()
1 method overrides WorkflowManagerInterface::getFields()
- WorkflowManager::getFields in src/
Entity/ WorkflowManager.php - Utility function to return an array of workflow fields.
File
- src/
Entity/ WorkflowManagerInterface.php, line 99
Class
- WorkflowManagerInterface
- Provides an interface for workflow manager.
Namespace
Drupal\workflow\EntityCode
public function getFields($entity_type_id);