Search for publish

  1. Search 7.x for publish
  2. Search 9.5.x for publish
  3. Search 8.9.x for publish
  4. Search 11.x for publish
  5. Other projects
Title Object type File name Summary
Announcement::getDatePublishedTimestamp function core/modules/announcements_feed/src/Announcement.php Gets the published date in timestamp format.
BookTest::testBookNavigationBlockOnUnpublishedBook function core/modules/book/tests/src/Functional/BookTest.php Tests the book navigation block when book is unpublished.
CommentAccessTest::$unpublishedNode property core/modules/comment/tests/src/Functional/CommentAccessTest.php Node for commenting.
CommentActionsTest::testCommentUnpublishByKeyword function core/modules/comment/tests/src/Kernel/CommentActionsTest.php Tests the unpublish comment by keyword action.
CommentEntityReferenceTest::testCommentOfUnpublishedNodeBypassAccess function core/modules/comment/tests/src/Functional/CommentEntityReferenceTest.php Tests that comments of unpublished are not shown.
CommentInterface::NOT_PUBLISHED constant core/modules/comment/src/CommentInterface.php Comment is awaiting approval.
CommentInterface::PUBLISHED constant core/modules/comment/src/CommentInterface.php Comment is published.
CommentThreadingTest::testCommentReplyLinkUnpublished function core/modules/comment/tests/src/Functional/CommentThreadingTest.php Check the reply link on unpublished comments.
CommentTranslationUITest::doTestPublishedStatus function core/modules/comment/tests/src/Functional/CommentTranslationUITest.php Tests the translation publishing status.
CommentValidationTest::testValidationOfCommentOfUnpublishedNode function core/modules/comment/tests/src/Kernel/CommentValidationTest.php Tests that comments of unpublished nodes are not valid.
CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessForPublishableEntities function core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php Implements ::testCollectionFilterAccess() for permission + status access.
ContentModerationState::$published property core/modules/content_moderation/src/ContentModerationState.php If entities should be published if in this state.
ContentModerationState::isPublishedState function core/modules/content_moderation/src/ContentModerationState.php Determines if entities should be published if in this state.
ContentModerationTest::$userViewAnyUnpublished property core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php User with the 'view media' and 'view any unpublished content' permissions.
ContentModerationTest::$userViewOwnUnpublished property core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php User with the 'view media' and 'view own unpublished media' permissions.
ContentModerationTest::assertOnlyPublishedMedia function core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php Asserts only published media items are visible.
ContentTranslationHandler::hasPublishedStatus function core/modules/content_translation/src/ContentTranslationHandler.php Checks whether the entity type supports published status natively.
ContentTranslationMetadataWrapper::isPublished function core/modules/content_translation/src/ContentTranslationMetadataWrapper.php Returns the translation published status.
ContentTranslationMetadataWrapper::setPublished function core/modules/content_translation/src/ContentTranslationMetadataWrapper.php Sets the translation published status.
ContentTranslationMetadataWrapperInterface::isPublished function core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php Returns the translation published status.
ContentTranslationMetadataWrapperInterface::setPublished function core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php Sets the translation published status.
ContentTranslationUITestBase::doTestPublishedStatus function core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Tests the translation publishing status.
DefaultModerationStateTest::testPublishedDefaultState function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Tests a workflow with a default moderation state set.
EntityOperations::isPublished function core/modules/content_moderation/src/EntityOperations.php Checks if the entity is published.
EntityOperationsTest::testPublishedCreation function core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php Verifies that a newly-created node can go straight to published.
EntityPublishedActionDeriver class core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php Provides an action deriver that finds publishable entity types.
EntityPublishedActionDeriver.php file core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php
EntityPublishedActionDeriver::isApplicable function core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php Indicates whether the deriver can be used for the provided entity type.
EntityPublishedInterface interface core/lib/Drupal/Core/Entity/EntityPublishedInterface.php Provides an interface for access to an entity's published state.
EntityPublishedInterface.php file core/lib/Drupal/Core/Entity/EntityPublishedInterface.php
EntityPublishedInterface::isPublished function core/lib/Drupal/Core/Entity/EntityPublishedInterface.php Returns whether or not the entity is published.
EntityPublishedInterface::setPublished function core/lib/Drupal/Core/Entity/EntityPublishedInterface.php Sets the entity as published.
EntityPublishedInterface::setUnpublished function core/lib/Drupal/Core/Entity/EntityPublishedInterface.php Sets the entity as unpublished.
EntityPublishedTrait trait core/lib/Drupal/Core/Entity/EntityPublishedTrait.php Provides a trait for published status.
EntityPublishedTrait.php file core/lib/Drupal/Core/Entity/EntityPublishedTrait.php
EntityPublishedTrait::isPublished function core/lib/Drupal/Core/Entity/EntityPublishedTrait.php
EntityPublishedTrait::publishedBaseFieldDefinitions function core/lib/Drupal/Core/Entity/EntityPublishedTrait.php Returns an array of base field definitions for publishing status.
EntityPublishedTrait::setPublished function core/lib/Drupal/Core/Entity/EntityPublishedTrait.php
EntityPublishedTrait::setUnpublished function core/lib/Drupal/Core/Entity/EntityPublishedTrait.php
JSONAPI_FILTER_AMONG_PUBLISHED constant core/modules/jsonapi/jsonapi.module Array key for denoting type-based published-only filtering access.
MediaAccessTest::testUnpublishedMediaUserAccess function core/modules/media/tests/src/Functional/MediaAccessTest.php Tests unpublished media access.
MediaEmbedFilterTest::providerAccessUnpublished function core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php Data provider for testAccessUnpublished().
MediaEmbedFilterTest::testAccessUnpublished function core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php Tests that entity access is respected by embedding an unpublished entity.
MenuUiContentModerationTest::testMenuUiWithUnpublishedContent function core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php Tests that unpublished content can be selected through the menu UI.
MenuUiTest::testUnpublishedNodeMenuItem function core/modules/menu_ui/tests/src/Functional/MenuUiTest.php Tests that menu items pointing to unpublished nodes are editable.
ModerationInformation::isDefaultRevisionPublished function core/modules/content_moderation/src/ModerationInformation.php
ModerationInformationInterface::isDefaultRevisionPublished function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if the default revision for the given entity is published.
ModerationInformationTest::isDefaultRevisionPublishedTestCases function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php Test cases for ::testIsDefaultRevisionPublished.
ModerationInformationTest::testIsDefaultRevisionPublished function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::isDefaultRevisionPublished
@dataProvider isDefaultRevisionPublishedTestCases
ModerationInformationTest::testIsDefaultRevisionPublishedMultilingual function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::isDefaultRevisionPublished

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