You are here

function sophron_requirements in Sophron 8

Implements hook_requirements().

File

./sophron.install, line 11
Sophron - MIME types management API.

Code

function sophron_requirements($phase) {
  if ($phase === 'runtime') {
    return \Drupal::service('sophron.mime_map.manager')
      ->requirements($phase);
  }
  return [];
}