Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationHandler.php

function ContentTranslationHandler::hasPublishedStatus

Checks whether the entity type supports published status natively.

Return value

bool TRUE if metadata is natively supported, FALSE otherwise.

1 call to ContentTranslationHandler::hasPublishedStatus()
ContentTranslationHandler::getFieldDefinitions in core/modules/content_translation/src/ContentTranslationHandler.php
Returns a set of field definitions to be used to store metadata items.
1 method overrides ContentTranslationHandler::hasPublishedStatus()
ProfileTranslationHandler::hasPublishedStatus in core/modules/user/src/ProfileTranslationHandler.php
Checks whether the entity type supports published status natively.

File

core/modules/content_translation/src/ContentTranslationHandler.php, line 197

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

protected function hasPublishedStatus() {
    return $this->checkFieldStorageDefinitionTranslatability('status');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal