function DisplayPluginBase::isBaseTableTranslatable

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isBaseTableTranslatable()
  2. 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isBaseTableTranslatable()
  3. 11.x 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
DisplayPluginBase::optionsSummary in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2764

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.