ModerationInformation

General service for moderation-related questions about Entity API.

Hierarchy

File

core/modules/content_moderation/src/ModerationInformation.php, line 13

Namespace

Drupal\content_moderation

Members

Name Modifiers Type Description
ModerationInformation::$entityTypeManager protected property The entity type manager.
ModerationInformation::canModerateEntitiesOfEntityType public function Determines if an entity type can have moderated entities. Overrides ModerationInformationInterface::canModerateEntitiesOfEntityType
ModerationInformation::getDefaultRevisionId public function Returns the revision ID of the default revision for the specified entity. Overrides ModerationInformationInterface::getDefaultRevisionId
ModerationInformation::getLatestRevision public function Loads the latest revision of a specific entity. Overrides ModerationInformationInterface::getLatestRevision
ModerationInformation::getLatestRevisionId public function Returns the revision ID of the latest revision of the given entity. Overrides ModerationInformationInterface::getLatestRevisionId
ModerationInformation::hasForwardRevision public function Determines if a forward revision exists for the specified entity. Overrides ModerationInformationInterface::hasForwardRevision
ModerationInformation::isLatestRevision public function Determines if an entity is a latest revision. Overrides ModerationInformationInterface::isLatestRevision
ModerationInformation::isLiveRevision public function Determines if an entity is "live". Overrides ModerationInformationInterface::isLiveRevision
ModerationInformation::isModeratedEntity public function Determines if an entity is moderated. Overrides ModerationInformationInterface::isModeratedEntity
ModerationInformation::shouldModerateEntitiesOfBundle public function Determines if an entity type/bundle entities should be moderated. Overrides ModerationInformationInterface::shouldModerateEntitiesOfBundle
ModerationInformation::__construct public function Creates a new ModerationInformation instance.
doc_Drupal
2016-10-29 09:28:32
Comments
Leave a Comment

Please login to continue.