public static function License::getWorkflowId in Commerce License 8.2
Implements the workflow_callback for the state field.
Parameters
\Drupal\commerce_license\Entity\LicenseInterface $license: The license.
Return value
string The workflow ID.
Overrides LicenseInterface::getWorkflowId
See also
\Drupal\state_machine\Plugin\Field\FieldType\StateItem
File
- src/
Entity/ License.php, line 285
Class
- License
- Defines the License entity.
Namespace
Drupal\commerce_license\EntityCode
public static function getWorkflowId(LicenseInterface $license) {
return $license
->getTypePlugin()
->getWorkflowId();
}