You are here

public function AuthmapDeleteLink::query in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/AuthmapDeleteLink.php \Drupal\samlauth\Plugin\views\field\AuthmapDeleteLink::query()

Called to add the field to a query.

Overrides LinkBase::query

File

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

Class

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

Namespace

Drupal\samlauth\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();
}