getBaseEntityType example

/** * {@inheritdoc} */
  public function render($row) {
    return $this->getEntityTranslationByRelationship($row->_entity, $row);
  }

  /** * {@inheritdoc} */
  public function getEntityTypeId() {
    return $this->view->getBaseEntityType()->id();
  }

  /** * {@inheritdoc} */
  protected function getEntityTypeManager() {
    return $this->entityTypeManager;
  }

  /** * {@inheritdoc} */
    // 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();
    }
    return FALSE;
  }

}

/** * @} */
Home | Imprint | This part of the site doesn't use cookies.