You are here

public function AdvbanIpManagerInterface::expiryDurationIndex in Advanced ban 8

Get default expiry duration index.

Parameters

array $expiry_durations: Expiry durations array.

string $default_expiry_duration: Default expiry duration.

Return value

int Item index.

1 method overrides AdvbanIpManagerInterface::expiryDurationIndex()
AdvbanIpManager::expiryDurationIndex in src/AdvbanIpManager.php
Get default expiry duration index.

File

src/AdvbanIpManagerInterface.php, line 111

Class

AdvbanIpManagerInterface
Provides an interface defining a AdvbanIp manager.

Namespace

Drupal\advban

Code

public function expiryDurationIndex(array $expiry_durations, $default_expiry_duration);