You are here

public function InstagramFeedsEventBase::__construct in Instagram Feeds 8

Constructs the object.

Parameters

\Drupal\Core\Config\ImmutableConfig $configuration: The Instagram feeds module settings.

\Drupal\instagram_feeds\Entity\InstagramAccountInterface $account: The Instagram account.

2 calls to InstagramFeedsEventBase::__construct()
InstagramPostsObtainedEvent::__construct in src/Event/InstagramPostsObtainedEvent.php
Constructs the object.
MediaEntityInstantiatedEvent::__construct in src/Event/MediaEntityInstantiatedEvent.php
Constructs the object.
2 methods override InstagramFeedsEventBase::__construct()
InstagramPostsObtainedEvent::__construct in src/Event/InstagramPostsObtainedEvent.php
Constructs the object.
MediaEntityInstantiatedEvent::__construct in src/Event/MediaEntityInstantiatedEvent.php
Constructs the object.

File

src/Event/InstagramFeedsEventBase.php, line 40

Class

InstagramFeedsEventBase
En event occurs when instagram_feeds creates a new media entity.

Namespace

Drupal\instagram_feeds\Event

Code

public function __construct(ImmutableConfig $configuration, InstagramAccountInterface $account) {
  $this->config = $configuration;
  $this->account = $account;
}