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

Breadcrumb

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

function WidgetBase::isApplicable

Overrides WidgetInterface::isApplicable

2 calls to WidgetBase::isApplicable()
OEmbedWidget::isApplicable in core/modules/media/src/Plugin/Field/FieldWidget/OEmbedWidget.php
Returns if the widget can be used for the provided field.
OEmbedWidget::isApplicable in core/modules/media/src/Plugin/Field/FieldWidget/OEmbedWidget.php
Returns if the widget can be used for the provided field.
3 methods override WidgetBase::isApplicable()
MediaLibraryWidget::isApplicable in core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php
Returns if the widget can be used for the provided field.
ModerationStateWidget::isApplicable in core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php
Returns if the widget can be used for the provided field.
OEmbedWidget::isApplicable in core/modules/media/src/Plugin/Field/FieldWidget/OEmbedWidget.php
Returns if the widget can be used for the provided field.

File

core/lib/Drupal/Core/Field/WidgetBase.php, line 692

Class

WidgetBase
Base class for 'Field widget' plugin implementations.

Namespace

Drupal\Core\Field

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
    // By default, widgets are available for all fields.
    return TRUE;
}

API Navigation

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