How do i get the workflow entity associated to a certain node bundle? So far my approach has been to use EntityTypeManager to load the workflow config entity storage and trying to load the right workflow using loadByProperties() function,
$workflow = $this->entityTypeManager->getStorage('workflow')->loadByProperties();
except I don't know what properties I should be specifying or If I'm approaching this the right way.