public static function Plan::getWorkflowId in farmOS 2.x
Gets the workflow ID for the state field.
Parameters
\Drupal\plan\Entity\PlanInterface $plan: The plan entity.
Return value
string The workflow ID.
File
- modules/
core/ plan/ src/ Entity/ Plan.php, line 280
Class
- Plan
- Defines the plan entity.
Namespace
Drupal\plan\EntityCode
public static function getWorkflowId(PlanInterface $plan) {
$workflow = PlanType::load($plan
->bundle())
->getWorkflowId();
return $workflow;
}