You are here

class ErlPropertiesFormEvent in Entity Reference with Layout 8

Event that is fired when a layout options form is built.

Hierarchy

  • class \Drupal\entity_reference_layout\Event\ErlPropertiesFormEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ErlPropertiesFormEvent

File

src/Event/ErlPropertiesFormEvent.php, line 10

Namespace

Drupal\entity_reference_layout\Event
View source
class ErlPropertiesFormEvent extends Event {
  const EVENT_NAME = 'erl_properties_form';
  public $form;
  public $formDefaults;

  /**
   * Constructs the object.
   *
   * @param array $form
   *   The form array being built.
   * @param array $form_defaults
   *   Default values to populate form.
   */
  public function __construct(array &$form, array $form_defaults) {
    $this->form =& $form;
    $this->formDefaults = $form_defaults;
  }

}

Members