You are here

class SocialMediaEvent in Social media share 8

Class SocialMediaEvent.

Hierarchy

  • class \Drupal\social_media\Event\SocialMediaEvent extends \Drupal\social_media\Event\EventProxy

Expanded class hierarchy of SocialMediaEvent

2 files declare their use of SocialMediaEvent
SocialMediaAdminForm.php in src/Form/SocialMediaAdminForm.php
SocialSharingBlock.php in src/Plugin/Block/SocialSharingBlock.php

File

src/Event/SocialMediaEvent.php, line 27

Namespace

Drupal\social_media\Event
View source
class SocialMediaEvent extends EventProxy {

  /**
   * TODO describe element.
   *
   * @var array
   */
  protected $element;

  /**
   * Constructor.
   *
   * @param array $element
   *   TODO describe what element is.
   */
  public function __construct(array $element) {
    $this->element = $element;
  }

  /**
   * Return the element.
   *
   * @return array
   *   The element.
   */
  public function getElement() {
    return $this->element;
  }

  /**
   * Element setter.
   *
   * @param array $element
   *   TODO describe what element is.
   */
  public function setElement(array $element) {
    $this->element = $element;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SocialMediaEvent::$element protected property TODO describe element.
SocialMediaEvent::getElement public function Return the element.
SocialMediaEvent::setElement public function Element setter.
SocialMediaEvent::__construct public function Constructor.