public function MediaEntityInstantiatedEvent::__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.
\Drupal\media\MediaInterface $media: The media entity just created (not saved yet).
array $post: Instagram single post data.
Overrides InstagramFeedsEventBase::__construct
File
- src/
Event/ MediaEntityInstantiatedEvent.php, line 44
Class
- MediaEntityInstantiatedEvent
- En event occurs when instagram_feeds creates a new media entity.
Namespace
Drupal\instagram_feeds\EventCode
public function __construct(ImmutableConfig $configuration, InstagramAccountInterface $account, MediaInterface $media, array $post) {
parent::__construct($configuration, $account);
$this->mediaEntity = $media;
$this->post = $post;
}