This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/modules/content_moderation/src/ModerationStateTransitionInterface.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();
}