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

Breadcrumb

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

function AreaPluginBase::defineOptions

Overrides HandlerBase::defineOptions

14 calls to AreaPluginBase::defineOptions()
DisplayLink::defineOptions in core/modules/views/src/Plugin/views/area/DisplayLink.php
Information about options for all kinds of purposes will be held here.
DisplayLink::defineOptions in core/modules/views/src/Plugin/views/area/DisplayLink.php
Information about options for all kinds of purposes will be held here.
HTTPStatusCode::defineOptions in core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
Information about options for all kinds of purposes will be held here.
HTTPStatusCode::defineOptions in core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
Information about options for all kinds of purposes will be held here.
Messages::defineOptions in core/modules/views/src/Plugin/views/area/Messages.php
Information about options for all kinds of purposes will be held here.

... See full list

7 methods override AreaPluginBase::defineOptions()
DisplayLink::defineOptions in core/modules/views/src/Plugin/views/area/DisplayLink.php
Information about options for all kinds of purposes will be held here.
HTTPStatusCode::defineOptions in core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
Information about options for all kinds of purposes will be held here.
Messages::defineOptions in core/modules/views/src/Plugin/views/area/Messages.php
Information about options for all kinds of purposes will be held here.
Result::defineOptions in core/modules/views/src/Plugin/views/area/Result.php
Information about options for all kinds of purposes will be held here.
Title::defineOptions in core/modules/views/src/Plugin/views/area/Title.php
Information about options for all kinds of purposes will be held here.

... See full list

File

core/modules/views/src/Plugin/views/area/AreaPluginBase.php, line 59

Class

AreaPluginBase
Base class for area handler plugins.

Namespace

Drupal\views\Plugin\views\area

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $this->definition['field'] = !empty($this->definition['field']) ? $this->definition['field'] : '';
    $label = !empty($this->definition['label']) ? $this->definition['label'] : $this->definition['field'];
    $options['admin_label']['default'] = $label;
    $options['empty'] = [
        'default' => FALSE,
    ];
    return $options;
}

API Navigation

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