function ContentModerationInterface::getInitialState
Same name in other branches
- 9 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getInitialState()
- 8.9.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getInitialState()
- 11.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getInitialState()
Parameters
$entity: Content Moderation uses this parameter to determine the initial state based on publishing status.
Overrides WorkflowTypeInterface::getInitialState
File
-
core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModerationInterface.php, line 75
Class
- ContentModerationInterface
- Interface for ContentModeration WorkflowType plugin.
Namespace
Drupal\content_moderation\Plugin\WorkflowTypeCode
public function getInitialState($entity = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.