mustache_templates-8.x-1.0-beta4/mustache.install

mustache.install
<?php

/**
 * @file
 * Mustache Templates install file.
 */

/**
 * Implements hook_requirements().
 */
function mustache_requirements($phase) {
  $requirements = [];

  if (!class_exists('\Mustache_Engine')) {
    $requirements['mustache_php'] = [
      'title' => t('Mustache.php library missing'),
      'description' => t('The Mustache.php library is required to render Mustache templates with the Drupal theming system. Install it with <em>composer require "mustache/mustache:^2.13"</em>. Have a look at <a href=":url" target="_blank" rel="noopener noreferrer">the documentation</a> to see how to install dependencies with Composer.', [':url' => 'https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies']),
      'severity' => REQUIREMENT_ERROR,
    ];
  }

  return $requirements;
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc