You are here

public function SecuresiteManager::parseDirectives in Secure Site 8

1 call to SecuresiteManager::parseDirectives()
SecuresiteManager::boot in src/SecuresiteManager.php

File

src/SecuresiteManager.php, line 568
Contains \Drupal\securesite\SecuresiteManager.

Class

SecuresiteManager

Namespace

Drupal\securesite

Code

public function parseDirectives($field_value) {
  $directives = array();
  foreach (explode(',', trim($field_value)) as $directive) {
    list($directive, $value) = explode('=', trim($directive), 2);
    $directives[$directive] = trim($value, '"');
  }
  return $directives;
}