state = $state; $this->published = $published; $this->defaultRevision = $default_revision; } /** * Determines if entities should be published if in this state. * * @return bool */ public function isPublishedState() { return $this->published; } /** * Determines if entities should be the default revision if in this state. * * @return bool */ public function isDefaultRevisionState() { return $this->defaultRevision; } /** * {@inheritdoc} */ public function id() { return $this->state->id(); } /** * {@inheritdoc} */ public function label() { return $this->state->label(); } /** * {@inheritdoc} */ public function weight() { return $this->state->weight(); } /** * {@inheritdoc} */ public function canTransitionTo($to_state_id) { return $this->state->canTransitionTo($to_state_id); } /** * {@inheritdoc} */ public function getTransitionTo($to_state_id) { return $this->state->getTransitionTo($to_state_id); } /** * {@inheritdoc} */ public function getTransitions() { return $this->state->getTransitions(); } }