Search for info

  1. Search 7.x for info
  2. Search 9.5.x for info
  3. Search 10.3.x for info
  4. Search 11.x for info
  5. Other projects
Title Object type File name Summary
ModerationInformation::getUnsupportedFeatures function core/modules/content_moderation/src/ModerationInformation.php Gets unsupported features for a given entity type.
ModerationInformation::getWorkflowForEntity function core/modules/content_moderation/src/ModerationInformation.php Gets the workflow for the given content entity.
ModerationInformation::getWorkflowForEntityTypeAndBundle function core/modules/content_moderation/src/ModerationInformation.php Gets the workflow for the given entity type and bundle.
ModerationInformation::hasPendingRevision function core/modules/content_moderation/src/ModerationInformation.php Determines if a pending revision exists for the specified entity.
ModerationInformation::isDefaultRevisionPublished function core/modules/content_moderation/src/ModerationInformation.php Determines if the default revision for the given entity is published.
ModerationInformation::isFirstTimeModeration function core/modules/content_moderation/src/ModerationInformation.php Determines if this entity is being moderated for the first time.
ModerationInformation::isLatestRevision function core/modules/content_moderation/src/ModerationInformation.php Determines if an entity is a latest revision.
ModerationInformation::isLiveRevision function core/modules/content_moderation/src/ModerationInformation.php Determines if an entity is "live".
ModerationInformation::isModeratedEntity function core/modules/content_moderation/src/ModerationInformation.php Determines if an entity is moderated.
ModerationInformation::isModeratedEntityType function core/modules/content_moderation/src/ModerationInformation.php Determines if an entity type has at least one moderated bundle.
ModerationInformation::shouldModerateEntitiesOfBundle function core/modules/content_moderation/src/ModerationInformation.php Determines if an entity type/bundle entities should be moderated.
ModerationInformation::__construct function core/modules/content_moderation/src/ModerationInformation.php Creates a new ModerationInformation instance.
ModerationInformationInterface interface core/modules/content_moderation/src/ModerationInformationInterface.php Interface for moderation_information service.
ModerationInformationInterface.php file core/modules/content_moderation/src/ModerationInformationInterface.php
ModerationInformationInterface::canModerateEntitiesOfEntityType function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity type can have moderated entities.
ModerationInformationInterface::getAffectedRevisionTranslation function core/modules/content_moderation/src/ModerationInformationInterface.php Returns the revision translation affected translation of a revision.
ModerationInformationInterface::getDefaultRevisionId function core/modules/content_moderation/src/ModerationInformationInterface.php Returns the revision ID of the default revision for the specified entity.
ModerationInformationInterface::getLatestRevision function core/modules/content_moderation/src/ModerationInformationInterface.php Loads the latest revision of a specific entity.
ModerationInformationInterface::getLatestRevisionId function core/modules/content_moderation/src/ModerationInformationInterface.php Returns the revision ID of the latest revision of the given entity.
ModerationInformationInterface::getOriginalState function core/modules/content_moderation/src/ModerationInformationInterface.php Gets the original or initial state of the given entity.
ModerationInformationInterface::getUnsupportedFeatures function core/modules/content_moderation/src/ModerationInformationInterface.php Gets unsupported features for a given entity type.
ModerationInformationInterface::getWorkflowForEntity function core/modules/content_moderation/src/ModerationInformationInterface.php Gets the workflow for the given content entity.
ModerationInformationInterface::getWorkflowForEntityTypeAndBundle function core/modules/content_moderation/src/ModerationInformationInterface.php Gets the workflow for the given entity type and bundle.
ModerationInformationInterface::hasPendingRevision function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if a pending revision exists for the specified entity.
ModerationInformationInterface::isDefaultRevisionPublished function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if the default revision for the given entity is published.
ModerationInformationInterface::isLatestRevision function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity is a latest revision.
ModerationInformationInterface::isLiveRevision function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity is "live".
ModerationInformationInterface::isModeratedEntity function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity is moderated.
ModerationInformationInterface::isModeratedEntityType function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity type has at least one moderated bundle.
ModerationInformationInterface::shouldModerateEntitiesOfBundle function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if an entity type/bundle entities should be moderated.
ModerationInformationTest class core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php @coversDefaultClass \Drupal\content_moderation\ModerationInformation
@group content_moderation
ModerationInformationTest class core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @coversDefaultClass \Drupal\content_moderation\ModerationInformation
@group content_moderation
ModerationInformationTest.php file core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php
ModerationInformationTest.php file core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php
ModerationInformationTest::$moderationInformation property core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php The moderation information service.
ModerationInformationTest::$modules property core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php Modules to enable.
ModerationInformationTest::getEntityTypeManager function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Returns a mock Entity Type Manager.
ModerationInformationTest::getUser function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Builds a mock user.
ModerationInformationTest::isDefaultRevisionPublishedTestCases function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php Test cases for ::testIsDefaultRevisionPublished.
ModerationInformationTest::providerWorkflow function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Data provider for several tests.
ModerationInformationTest::setUp function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php
ModerationInformationTest::setupModerationBundleInfo function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Sets up content moderation and entity manager mocking.
ModerationInformationTest::testGetDefaultRevisionId function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::getDefaultRevisionId
ModerationInformationTest::testGetLatestRevision function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::getLatestRevision
@group legacy
@expectedDeprecation Drupal\content_moderation\ModerationInformation::getLatestRevision is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId()…
ModerationInformationTest::testGetLatestRevisionId function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::getLatestRevisionId
@group legacy
@expectedDeprecation Drupal\content_moderation\ModerationInformation::getLatestRevisionId is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use…
ModerationInformationTest::testGetOriginalState function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::getOriginalState
ModerationInformationTest::testGetOriginalStateMultilingual function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::getOriginalState
ModerationInformationTest::testGetWorkflowForEntity function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php @dataProvider providerWorkflow
@covers ::getWorkflowForEntity
ModerationInformationTest::testHasPendingRevision function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::hasPendingRevision
ModerationInformationTest::testIsDefaultRevisionPublished function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::isDefaultRevisionPublished
@dataProvider isDefaultRevisionPublishedTestCases

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.