You are here

class ErlMergeAttributesEvent in Entity Reference with Layout 8

Event that is fired when erl attributes are merged into layout_options.

Hierarchy

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

Expanded class hierarchy of ErlMergeAttributesEvent

1 file declares its use of ErlMergeAttributesEvent
entity_reference_layout.module in ./entity_reference_layout.module
Contains entity_reference_layout.module.

File

src/Event/ErlMergeAttributesEvent.php, line 10

Namespace

Drupal\entity_reference_layout\Event
View source
class ErlMergeAttributesEvent extends Event {
  const EVENT_NAME = 'erl_merge_attributes';
  public $attributes;
  public $formValues;

  /**
   * Constructs the object.
   *
   * @param array $attributes
   *   Attributes array being built.
   * @param array $form_values
   *   Form values to merge into attributes.
   */
  public function __construct(array &$attributes, array $form_values) {
    $this->attributes =& $attributes;
    $this->formValues = $form_values;
  }

}

Members