ModerationStateInterface.php in Workbench Moderation 8
Same filename and directory in other branches
Namespace
Drupal\workbench_moderationFile
src/ModerationStateInterface.phpView source
<?php
namespace Drupal\workbench_moderation;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface for defining Moderation state entities.
*/
interface ModerationStateInterface extends ConfigEntityInterface {
/**
* Determines if this state represents a published node.
*
* @return bool
* TRUE if this state deems the node published.
*/
public function isPublishedState();
/**
* Check if revision should be default.
*
* Determines if a revision should be made the default revision upon
* transition to this state.
*
* @return bool
* TRUE if content in this state should be the default revision.
*/
public function isDefaultRevisionState();
}
Interfaces
Name | Description |
---|---|
ModerationStateInterface | Provides an interface for defining Moderation state entities. |