VariantBase::__construct

public VariantBase::__construct(array $configuration, $plugin_id, $plugin_definition) Constructs a Drupal\Component\Plugin\PluginBase object. Parameters array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin_id for the plugin instance. mixed $plugin_definition: The plugin implementation definition. Overrides PluginBase::__construct File core/lib/Drupal/Core/Display/VariantBase.php, line 27 Class VariantBase Provides a ba

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

VariantBase::submitConfigurationForm

public VariantBase::submitConfigurationForm(array &$form, FormStateInterface $form_state) Form submission 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::submitConfigurationF

VariantBase::setWeight

public VariantBase::setWeight($weight) Sets the weight of the display variant. Parameters int $weight: The weight to set. Overrides VariantInterface::setWeight File core/lib/Drupal/Core/Display/VariantBase.php, line 64 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function setWeight($weight) { $this->configuration['weight'] = (int) $weight; }

VariantBase::setConfiguration

public VariantBase::setConfiguration(array $configuration) Sets the configuration for this plugin instance. Parameters array $configuration: An associative array containing the plugin's configuration. Overrides ConfigurablePluginInterface::setConfiguration File core/lib/Drupal/Core/Display/VariantBase.php, line 80 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function setConfiguration(array $configuration) { $this->c

VariantBase::label

public VariantBase::label() Returns the user-facing display variant label. Return value string The display variant label. Overrides VariantInterface::label File core/lib/Drupal/Core/Display/VariantBase.php, line 36 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function label() { return $this->configuration['label']; }

VariantBase::id

public VariantBase::id() Returns the unique ID for the display variant. Return value string The display variant ID. Overrides VariantInterface::id File core/lib/Drupal/Core/Display/VariantBase.php, line 50 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function id() { return $this->configuration['uuid']; }

VariantBase::getWeight

public VariantBase::getWeight() Returns the weight of the display variant. Return value int The display variant weight. Overrides VariantInterface::getWeight File core/lib/Drupal/Core/Display/VariantBase.php, line 57 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function getWeight() { return (int) $this->configuration['weight']; }

VariantBase::getConfiguration

public VariantBase::getConfiguration() Gets this plugin's configuration. Return value array An array of this plugin's configuration. Overrides ConfigurablePluginInterface::getConfiguration File core/lib/Drupal/Core/Display/VariantBase.php, line 71 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function getConfiguration() { return array( 'id' => $this->getPluginId(), ) + $this->configuration; }

VariantBase::defaultConfiguration

public VariantBase::defaultConfiguration() Gets default configuration for this plugin. Return value array An associative array with the default configuration. Overrides ConfigurablePluginInterface::defaultConfiguration File core/lib/Drupal/Core/Display/VariantBase.php, line 88 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function defaultConfiguration() { return array( 'label' => '', 'uuid' => '', 'wei