Issue #2940051 by Mohit Malik, kiamlaluno: Fix the punctuation in the comment describing what ContentEntityBase::isTranslatable() does

merge-requests/1654/head
Nathaniel Catchpole 2018-01-30 10:17:14 +00:00
parent 10272b9a95
commit b5880ee889
1 changed files with 2 additions and 2 deletions

View File

@ -420,8 +420,8 @@ abstract class ContentEntityBase extends Entity implements \IteratorAggregate, C
* {@inheritdoc}
*/
public function isTranslatable() {
// Check that the bundle is translatable, the entity has a language defined
// and if we have more than one language on the site.
// Check the bundle is translatable, the entity has a language defined, and
// the site has more than one language.
$bundles = $this->entityManager()->getBundleInfo($this->entityTypeId);
return !empty($bundles[$this->bundle()]['translatable']) && !$this->getUntranslated()->language()->isLocked() && $this->languageManager()->isMultilingual();
}