Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LinkBase.php

function LinkBase::defineOptions

Overrides FieldPluginBase::defineOptions

2 calls to LinkBase::defineOptions()
EntityLink::defineOptions in core/modules/views/src/Plugin/views/field/EntityLink.php
Information about options for all kinds of purposes will be held here.
EntityLink::defineOptions in core/modules/views/src/Plugin/views/field/EntityLink.php
Information about options for all kinds of purposes will be held here.
1 method overrides LinkBase::defineOptions()
EntityLink::defineOptions in core/modules/views/src/Plugin/views/field/EntityLink.php
Information about options for all kinds of purposes will be held here.

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal