ModerationStateDeleteForm

Builds the form to delete Moderation state entities. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\content_moderation\Form\ModerationStateDeleteFo

ModerationStateAccessControlHandler::checkAccess

protected ModerationStateAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The

ModerationStateAccessControlHandler

Access controller for the Moderation State entity. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\content_moderation\ModerationStateAccessControlHandler See also \Drupal\workbench_moderation\Entity\ModerationState. File core/modules/content_moderation/src/ModerationStateAccessControlHandler.php, line 15 Namespac

ModerationState::isPublishedState

public ModerationState::isPublishedState() Determines if content updated to this state should be published. Return value bool TRUE if content updated to this state should be published. Overrides ModerationStateInterface::isPublishedState File core/modules/content_moderation/src/Entity/ModerationState.php, line 91 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code public function isPublishedState() { return $this->published;

ModerationState::isDefaultRevisionState

public ModerationState::isDefaultRevisionState() Determines if content updated to this state should be the default revision. Return value bool TRUE if content in this state should be the default revision. Overrides ModerationStateInterface::isDefaultRevisionState File core/modules/content_moderation/src/Entity/ModerationState.php, line 98 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code public function isDefaultRevisionState()

ModerationState::$weight

Relative weight of this state. Type: int File core/modules/content_moderation/src/Entity/ModerationState.php, line 77 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code protected $weight;

ModerationState::$published

Whether this state represents a published node. Type: bool File core/modules/content_moderation/src/Entity/ModerationState.php, line 70 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code protected $published;

ModerationState::$label

The Moderation state label. Type: string File core/modules/content_moderation/src/Entity/ModerationState.php, line 63 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code protected $label;

ModerationState::$id

The Moderation state ID. Type: string File core/modules/content_moderation/src/Entity/ModerationState.php, line 56 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code protected $id;

ModerationState::$default_revision

Whether this state represents a default revision of the node. If this is a published state, then this property is ignored. Type: bool File core/modules/content_moderation/src/Entity/ModerationState.php, line 86 Class ModerationState Defines the Moderation state entity. Namespace Drupal\content_moderation\Entity Code protected $default_revision;