public function TwitterStatus::__construct in Twitter 8
Constructor for TwitterStatus.
File
- src/
Plugin/ Core/ Entity/ TwitterStatus.php, line 61
Class
- TwitterStatus
- Defines the twitter status entity class.
Namespace
Drupal\twitter\Plugin\Core\EntityCode
public function __construct($values = []) {
if (isset($values['user'])) {
$this->user = new TwitterAccount($values['user']);
unset($values['user']);
}
parent::__construct($values, 'twitter_status');
}