class InstagramPostsObtainedEvent in Instagram Feeds 8
En event occurs when instagram_feeds obtained posts from Instagram API.
Hierarchy
- class \Drupal\instagram_feeds\Event\InstagramFeedsEventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\instagram_feeds\Event\InstagramPostsObtainedEvent
Expanded class hierarchy of InstagramPostsObtainedEvent
2 files declare their use of InstagramPostsObtainedEvent
- CronHandler.php in src/
CronHandler.php - InstagramPostsObtainedSubscriber.php in src/
EventSubscriber/ InstagramPostsObtainedSubscriber.php
File
- src/
Event/ InstagramPostsObtainedEvent.php, line 11
Namespace
Drupal\instagram_feeds\EventView source
class InstagramPostsObtainedEvent extends InstagramFeedsEventBase {
/**
* Instagram posts.
*
* @var array
*/
public $posts;
/**
* Constructs the object.
*
* @param \Drupal\Core\Config\ImmutableConfig $configuration
* The Instagram feeds module settings.
* @param \Drupal\instagram_feeds\Entity\InstagramAccountInterface $account
* The Instagram account.
* @param array $posts
* The list of Instagram posts to modify.
*/
public function __construct(ImmutableConfig $configuration, InstagramAccountInterface $account, array $posts) {
parent::__construct($configuration, $account);
$this->posts = $posts;
}
/**
* {@inheritdoc}
*/
public static function getEventName() : string {
return 'instagram_feeds_posts_obtained';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstagramFeedsEventBase:: |
private | property | Instagram account. | |
InstagramFeedsEventBase:: |
private | property | Instagram Feeds Config bucket. | |
InstagramFeedsEventBase:: |
public | function | Gets related Instagram Account. | |
InstagramFeedsEventBase:: |
public | function | Gets Instagram Feeds setting (except client_secret). | |
InstagramPostsObtainedEvent:: |
public | property | Instagram posts. | |
InstagramPostsObtainedEvent:: |
public static | function |
Returns event system name for dispatcher. Overrides InstagramFeedsEventBase:: |
|
InstagramPostsObtainedEvent:: |
public | function |
Constructs the object. Overrides InstagramFeedsEventBase:: |