You are here

sophron.module in Sophron 8

Sophron - MIME types management API.

File

sophron.module
View source
<?php

/**
 * @file
 * Sophron - MIME types management API.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function sophron_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'sophron.settings':
      $output = '';
      $output .= '<p>' . t('<strong>Sophron</strong> provides an extensive MIME types management API, enhancing Drupal core capabilities. It integrates with the <a href=":mimemap_url">FileEye/MimeMap</a> PHP library.', [
        ':mimemap_url' => 'https://github.com/FileEye/MimeMap/',
      ]) . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
sophron_help Implements hook_help().