You are here

protected function DisplayPluginBase::isBaseTableTranslatable in Drupal 9

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

Returns whether the base table is of a translatable entity type.

Return value

bool TRUE if the base table is of a translatable entity type, FALSE otherwise.

2 calls to DisplayPluginBase::isBaseTableTranslatable()
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 2752

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

protected function isBaseTableTranslatable() {
  if ($entity_type = $this->view
    ->getBaseEntityType()) {
    return $entity_type
      ->isTranslatable();
  }
  return FALSE;
}