You are here

public function SendinblueManager::addSubscriberTable in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/SendinblueManager.php \Drupal\sendinblue\SendinblueManager::addSubscriberTable()

Add subscriber on drupal table.

Parameters

array $data: A data to add in table.

File

src/SendinblueManager.php, line 655

Class

SendinblueManager
Basic manager of module.

Namespace

Drupal\sendinblue

Code

public function addSubscriberTable(array $data = []) {
  $this->connection
    ->insert('sendinblue_contact')
    ->fields([
    'email' => $data['email'],
    'info' => $data['info'],
    'code' => $data['code'],
    'is_active' => $data['is_active'],
  ])
    ->execute();
}