WizardEvent.php

Same filename in other branches
  1. 8.x-3.x src/Event/WizardEvent.php

Namespace

Drupal\ctools\Event

File

src/Event/WizardEvent.php

View source
<?php

namespace Drupal\ctools\Event;

use Drupal\ctools\Wizard\FormWizardInterface;
use Drupal\Component\EventDispatcher\Event;

/**
 * An event for altering form wizard values.
 */
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;
    }

}

Classes

Title Deprecated Summary
WizardEvent An event for altering form wizard values.