/**
* Returns the available rendering strategies for language-aware entities.
*
* @return array
* An array of available entity row renderers keyed by renderer identifiers.
*/
protected function buildRenderingLanguageOptions() { // @todo Consider making these plugins. See
// https://www.drupal.org/node/2173811.
// Pass the current rendering language (in this case a one element array) so
// is not lost when there are language configuration changes.
return $this->
listLanguages(LanguageInterface::STATE_CONFIGURABLE | LanguageInterface::STATE_SITE_DEFAULT | PluginBase::INCLUDE_NEGOTIATED | PluginBase::INCLUDE_ENTITY,
[$this->
getOption('rendering_language'
)]);
} /**
* Returns whether the base table is of a translatable entity type.
*
* @return bool
* TRUE if the base table is of a translatable entity type, FALSE otherwise.
*/
protected function isBaseTableTranslatable() { if ($entity_type =
$this->view->
getBaseEntityType()) { return $entity_type->
isTranslatable();
}