You are here

protected function DisplayPluginBase::buildRenderingLanguageOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::buildRenderingLanguageOptions()

Returns the available rendering strategies for language-aware entities.

Return value

array An array of available entity row renderers keyed by renderer identifiers.

2 calls to DisplayPluginBase::buildRenderingLanguageOptions()
DisplayPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Provide a form to edit options for this plugin.
DisplayPluginBase::optionsSummary in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Provides the default summary for options in the views UI.

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2645
Contains \Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

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, array(
    $this
      ->getOption('rendering_language'),
  ));
}