You are here

public function BrightcoveSubscription::setEvents in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::setEvents()
  2. 3.x src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::setEvents()

Sets the events for which we want to subscribe.

Parameters

string[] $events: Array of events to subscribe to.

Return value

$this

Overrides BrightcoveSubscriptionInterface::setEvents

File

src/Entity/BrightcoveSubscription.php, line 158

Class

BrightcoveSubscription
Defines the Brightcove Subscription entity.

Namespace

Drupal\brightcove\Entity

Code

public function setEvents(array $events) {
  $this->events = $events;
  return $this;
}