You are here

ModerationStateInterface.php in Workbench Moderation 8

Same filename and directory in other branches
  1. 8.2 src/ModerationStateInterface.php

File

src/ModerationStateInterface.php
View 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

Namesort descending Description
ModerationStateInterface Provides an interface for defining Moderation state entities.