public function ModerationInformationInterface::getWorkflowForEntity in Config Entity Revisions 8.2
Gets the workflow for the given content entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity to get the workflow for.
Return value
\Drupal\workflows\WorkflowInterface|null The workflow entity. NULL if there is no workflow.
File
- src/
ModerationInformationInterface.php, line 167
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\config_entity_revisionsCode
public function getWorkflowForEntity(ContentEntityInterface $entity);