You are here

protected function ContentEntity::isTranslatable in Search API 8

Determines whether the entity type supports translations.

Return value

bool TRUE if the entity is translatable, FALSE otherwise.

3 calls to ContentEntity::isTranslatable()
ContentEntity::buildConfigurationForm in src/Plugin/search_api/datasource/ContentEntity.php
Form constructor.
ContentEntity::defaultConfiguration in src/Plugin/search_api/datasource/ContentEntity.php
Gets default configuration for this plugin.
ContentEntity::getLanguages in src/Plugin/search_api/datasource/ContentEntity.php
Retrieves the enabled languages.

File

src/Plugin/search_api/datasource/ContentEntity.php, line 763

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

protected function isTranslatable() {
  return $this
    ->getEntityType()
    ->isTranslatable();
}