function LinkBase::defineOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::defineOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::defineOptions()
  3. 10 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::defineOptions()

Overrides FieldPluginBase::defineOptions

1 call to LinkBase::defineOptions()
EntityLink::defineOptions in core/modules/views/src/Plugin/views/field/EntityLink.php
1 method overrides LinkBase::defineOptions()
EntityLink::defineOptions in core/modules/views/src/Plugin/views/field/EntityLink.php

File

core/modules/views/src/Plugin/views/field/LinkBase.php, line 121

Class

LinkBase
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['text'] = [
        'default' => $this->getDefaultLabel(),
    ];
    return $options;
}

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