This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/core/modules/content_moderation/src/ModerationStateTransitionInterface.php

36 lines
756 B
PHP

<?php
namespace Drupal\content_moderation;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface for defining Moderation state transition entities.
*/
interface ModerationStateTransitionInterface extends ConfigEntityInterface {
/**
* Gets the from state for the given transition.
*
* @return string
* The moderation state ID for the from state.
*/
public function getFromState();
/**
* Gets the to state for the given transition.
*
* @return string
* The moderation state ID for the to state.
*/
public function getToState();
/**
* Gets the weight for the given transition.
*
* @return int
* The weight of this transition.
*/
public function getWeight();
}