public static function BrightcoveSubscription::count in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::count()
- 3.x src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::count()
Counts local subscriptions.
Return value
int|null Number of the available local subscriptions entities.
1 call to BrightcoveSubscription::count()
- StatusOverviewForm::buildForm in src/
Form/ StatusOverviewForm.php - Form constructor.
File
- src/
Entity/ BrightcoveSubscription.php, line 650
Class
- BrightcoveSubscription
- Defines the Brightcove Subscription entity.
Namespace
Drupal\brightcove\EntityCode
public static function count() {
/** @var \Drupal\Core\Database\Connection $connection */
$connection = \Drupal::getContainer()
->get('database');
return $connection
->select('brightcove_subscription', 'bs')
->fields('bs')
->countQuery()
->execute()
->fetchField();
}