Commit b5880ee8 authored by catch's avatar catch
Browse files

Issue #2940051 by Mohit Malik, kiamlaluno: Fix the punctuation in the comment...

Issue #2940051 by Mohit Malik, kiamlaluno: Fix the punctuation in the comment describing what ContentEntityBase::isTranslatable() does
parent 10272b9a
...@@ -420,8 +420,8 @@ public function getRevisionId() { ...@@ -420,8 +420,8 @@ public function getRevisionId() {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function isTranslatable() { public function isTranslatable() {
// Check that the bundle is translatable, the entity has a language defined // Check the bundle is translatable, the entity has a language defined, and
// and if we have more than one language on the site. // the site has more than one language.
$bundles = $this->entityManager()->getBundleInfo($this->entityTypeId); $bundles = $this->entityManager()->getBundleInfo($this->entityTypeId);
return !empty($bundles[$this->bundle()]['translatable']) && !$this->getUntranslated()->language()->isLocked() && $this->languageManager()->isMultilingual(); return !empty($bundles[$this->bundle()]['translatable']) && !$this->getUntranslated()->language()->isLocked() && $this->languageManager()->isMultilingual();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment