VariantInterface::setWeight

public VariantInterface::setWeight($weight) Sets the weight of the display variant. Parameters int $weight: The weight to set. File core/lib/Drupal/Core/Display/VariantInterface.php, line 61 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function setWeight($weight);

vertical-tabs.html.twig

Default theme implementation for vertical tabs. Available variables attributes: A list of HTML attributes for the wrapper element. children: The rendered tabs. See also template_preprocess_vertical_tabs() File core/modules/system/templates/vertical-tabs.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

VariantManager

Manages discovery of display variant plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Display\VariantManager See also \Drupal\Core\Display\Annotation\DisplayVariant \Drupal\Core\Display\VariantInterface \Drupal\Core\Di

VariantInterface::build

public VariantInterface::build() Builds and returns the renderable array for the display variant. The variant can contain cacheability metadata for the configuration that was passed in setConfiguration(). In the build() method, this should be added to the render array that is returned. Return value array A render array for the display variant. File core/lib/Drupal/Core/Display/VariantInterface.php, line 85 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespac

VariantInterface::getWeight

public VariantInterface::getWeight() Returns the weight of the display variant. Return value int The display variant weight. File core/lib/Drupal/Core/Display/VariantInterface.php, line 53 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function getWeight();

VariantInterface::adminLabel

public VariantInterface::adminLabel() Returns the admin-facing display variant label. This is for the type of display variant, not the configured variant itself. Return value string The display variant administrative label. File core/lib/Drupal/Core/Display/VariantInterface.php, line 37 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function adminLabel();

VariantInterface::id

public VariantInterface::id() Returns the unique ID for the display variant. Return value string The display variant ID. File core/lib/Drupal/Core/Display/VariantInterface.php, line 45 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function id();

VariantInterface::access

public VariantInterface::access(AccountInterface $account = NULL) Determines if this display variant is accessible. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. Return value bool TRUE if this display variant is accessible, FALSE otherwise. File core/lib/Drupal/Core/Display/VariantInterface.php, line 73 Class VariantInterface Provides an interface for DisplayVariant

VariantInterface::label

public VariantInterface::label() Returns the user-facing display variant label. Return value string The display variant label. File core/lib/Drupal/Core/Display/VariantInterface.php, line 27 Class VariantInterface Provides an interface for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function label();

VariantBase::validateConfigurationForm

public VariantBase::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::validateConfigurat