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

Breadcrumb

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

function VariantInterface::setWeight

Sets the weight of the display variant.

Parameters

int $weight: The weight to set.

1 method overrides VariantInterface::setWeight()
VariantBase::setWeight in core/lib/Drupal/Core/Display/VariantBase.php
Sets the weight of the display variant.

File

core/lib/Drupal/Core/Display/VariantInterface.php, line 62

Class

VariantInterface
Provides an interface for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function setWeight($weight);

API Navigation

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