function ContentTranslationHandler::hasPublishedStatus

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::hasPublishedStatus()

Checks whether the entity type supports published status natively.

Return value

bool TRUE if metadata is natively supported, FALSE otherwise.

File

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

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

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

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