我正在尝试将PHRETS类添加到Drupal8 ()中。在Drupal7中,我通过简单地包含autoload.php文件和调用类名来做到这一点。但是Drupal8不允许这样做。它需要以PSR-4格式声明类。PHRETS有这么多的类。有没有其他方法可以直接调用这个类,就像我在Drupal7中使用的那样:
use PHRETS\Configuration;
require_once("vendor/autoload.php");
我在无头模式下使用drupal8。因此,我在Drupal8上有一个后端,在JS中有一个前端。我希望drupal8中的内容URL指向前端域,而不是后端(后端没有任何模板来显示内容)。
backend.example.com/mycontent for Drupal8 www.example.com/mycontent for the前端
如何更新UI中的所有链接,使前端域取代后端域?(编辑表单上的视图或管理/内容或面包屑)。
我在Lando 中安装了Drupal8,在lando文件中添加了phpmyAdmin服务,问题是配置的数据库在phpmyAdmin中没有显示。
name: mydrupal8
recipe: drupal8
config:
webroot: /drupal
services: # Define your services
appserver: # Create a web server container
type: php:7.2 # Specify what version of php to use
via: apache # This could be