class WizardEvent

Same name in other branches
  1. 4.0.x src/Event/WizardEvent.php \Drupal\ctools\Event\WizardEvent

An event for altering form wizard values.

Hierarchy

  • class \Drupal\Component\EventDispatcher\Event extends \Symfony\Component\EventDispatcher\Event
    • class \Drupal\ctools\Event\WizardEvent extends \Drupal\Component\EventDispatcher\Event

Expanded class hierarchy of WizardEvent

2 files declare their use of WizardEvent
EntityFormWizardBase.php in src/Wizard/EntityFormWizardBase.php
FormWizardBase.php in src/Wizard/FormWizardBase.php

File

src/Event/WizardEvent.php, line 11

Namespace

Drupal\ctools\Event
View source
class WizardEvent extends Event {
    
    /**
     * @var \Drupal\ctools\Wizard\FormWizardInterface
     */
    protected $wizard;
    
    /**
     * @var mixed
     */
    protected $values;
    
    /**
     *
     */
    public function __construct(FormWizardInterface $wizard, $values) {
        $this->wizard = $wizard;
        $this->values = $values;
    }
    
    /**
     *
     */
    public function getWizard() {
        return $this->wizard;
    }
    
    /**
     *
     */
    public function getValues() {
        return $this->values;
    }
    
    /**
     *
     */
    public function setValues($values) {
        $this->values = $values;
        return $this;
    }

}

Members

Title Sort descending Modifiers Object type Summary
WizardEvent::$values protected property
WizardEvent::$wizard protected property
WizardEvent::getValues public function
WizardEvent::getWizard public function
WizardEvent::setValues public function
WizardEvent::__construct public function