37 lines
756 B
PHP
37 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();
|
|
|
|
}
|