You are here

public function ContentModerationInterface::getInitialState in Drupal 8

Same name and namespace in other branches
  1. 9 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\WorkflowType

Code

public function getInitialState($entity = NULL);