You are here

public function AuthmapDeleteLink::query in External Authentication 2.0.x

Called to add the field to a query.

Overrides LinkBase::query

File

src/Plugin/views/field/AuthmapDeleteLink.php, line 22

Class

AuthmapDeleteLink
Field handler to present a link to delete an authmap entry.

Namespace

Drupal\externalauth\Plugin\views\field

Code

public function query() {

  // This is overridden to not call $this->getEntityTranslationRenderer()
  // which will break because we don't have an entity type. (And we assume
  // we can skip calling it because we never need to add extra tables/fields
  // in order to translate this link. As an aside: this class would be much
  // smaller if LinkBase didn't contain entity related code and if all non
  // entity related code was actually in LinkBase so we didn't need to copy
  // it from EntityLinkBase.)
  $this
    ->addAdditionalFields();
}