You are here

public function ModerationInformationInterface::getWorkflowForEntityTypeAndBundle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()

Gets the workflow for the given entity type and bundle.

Parameters

string $entity_type_id: The entity type ID.

string $bundle_id: The entity bundle ID.

Return value

\Drupal\workflows\WorkflowInterface|null The associated workflow. NULL if there is no workflow.

1 method overrides ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
ModerationInformation::getWorkflowForEntityTypeAndBundle in core/modules/content_moderation/src/ModerationInformation.php
Gets the workflow for the given entity type and bundle.

File

core/modules/content_moderation/src/ModerationInformationInterface.php, line 204

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function getWorkflowForEntityTypeAndBundle($entity_type_id, $bundle_id);