You are here

public function TweetVisibleConstraintValidator::__construct in Media entity Twitter 8

Constructs a new TweetVisibleConstraintValidator.

Parameters

\GuzzleHttp\Client $http_client: The http client service.

File

src/Plugin/Validation/Constraint/TweetVisibleConstraintValidator.php, line 33

Class

TweetVisibleConstraintValidator
Validates the TweetVisible constraint.

Namespace

Drupal\media_entity_twitter\Plugin\Validation\Constraint

Code

public function __construct(Client $http_client) {
  $this->httpClient = $http_client;
}