You are here

public function PanelsVariantEvent::getVariant in Panels 8.4

Returns the Panels display variant that triggered the event.

Return value

\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant The Panels display variant.

File

src/PanelsVariantEvent.php, line 36

Class

PanelsVariantEvent
Event object for events relating to Panels display variants.

Namespace

Drupal\panels

Code

public function getVariant() {
  return $this->variant;
}