You are here

public function SendinblueManager::getListNameById in SendinBlue 8

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

Get list name form id.

Parameters

int $list_id: A list id.

Return value

string A list name.

File

src/SendinblueManager.php, line 564

Class

SendinblueManager
Basic manager of module.

Namespace

Drupal\sendinblue

Code

public function getListNameById($list_id) {
  $list = $this->sendinblueMailin
    ->getList($list_id);
  return $list !== NULL ? $list
    ->getName() : NULL;
}