drupal8文档_从请求到响应:Drupal 8内部之旅

drupal8文档

In the first article on Drupal 8 module development we looked a bit at the routing aspect of this process. We’ve seen that creating pages with paths is now a matter of declaring routes that match up with controllers. The latter, as we’ve seen, can return a render array that gets interpreted into markup and displayed in the main content area of that page. However, did you know that under the hood, Drupal actually transforms that array into a Response object according to the dictates of Symfony’s HTTPKernelInterface?

在有关Drupal 8模块开发的第一篇文章中,我们稍微了解了此过程的路由方面。 我们已经看到,创建带有路径的页面现在是声明与控制器匹配的路由的问题。 如我们所见,后者可以返回一个渲染数组,该渲染数组将被解释为标记并显示在该页面的主要内容区域中。 但是,您是否知道,Drupal实际上是根据Symfony的HTTPKernelInterface的指示将该数组转换为Response对象的?

drupal8wide

In this article, I would like us to go deeper into the internals of Drupal 8 (and Symfony2) and look at what actually happens (and can happen) from the moment a request is made by a user to the one in which they see something returned in response. The example I mentioned above is just one direction this process can go in, and today we are also going to see other possibilities. The goal is to understand the flexibility of the system which in turn can help us build awesome applications.

在本文中,我希望我们更深入地研究Drupal 8(和Symfony2)的内部结构,并查看从用户提出请求到他们看到某项请求的那一刻实际发生(可能发生)的情况。作为回应返回。 我上面提到的示例只是此过程可以进行的一个方向,而今天我们还将看到其他可能性。 目的是了解系统的灵活性,进而可以帮助我们构建出色的应用程序。

Before going into it, I strongly recommend you check out this diagram which does an amazing job at synthesizing what is often referred to as the render pipeline. Though in my opinion it represents more than the name implies because the render system is only part of what’s depicted, albeit a big one.

在深入研究之前,我强烈建议您检查一下该图 ,它在合成通常称为渲染管线的过程中起到了惊人的作用。 尽管在我看来,它代表的含义远超过其名称所暗示的,因为渲染系统只是所描绘内容的一部分,尽管很大。

前端控制器(index.php) (Front controller (index.php))

It’s no secret that Symfony2 is now an important part of Drupal. The latter uses many of Symfony’s components, most importantly for this article the HTTPKernel and HTTPFoundation ones. Together they are responsible for encapsulating a user request, passing it to the application and then returning whatever comes back to the user in a consistent and OO way.

Symfony2现在已经成为Drupal的重要组成部分,这已不是什么秘密了。 后者使用了许多Symfony的组件,对于本文而言,最重要的是使用HTTPKernel和HTTPFoundation的组件。 他们共同负责封装用户请求,将其传递给应用程序,然后以一致且面向对象的方式将返回的所有内容返回给用户。

The HTTPKernelInterface (something you probably heard about also from other contexts) is what glues all of this together by taking in a Request object and always returning a Response one. A very simple but powerful concept.

HTTPKernelInterface(您可能还从其他上下文中听说过 )通过接收一个Request对象并始终返回一个Response对象将所有这些粘合在一起。 一个非常简单但功能强大的概念。

This process is initiated inside the index.php file which starts by generating said Request object and passing it to the HTTPKernel::handle() method. The latter is then responsible for returning a Response object. At a high level, this is what happens both in a Drupal application as well as in a Symfony one (or any other that leverages the HTTPKernel component).

此过程在index.php文件中启动,该文件首先生成所述Request对象并将其传递给HTTPKernel::handle()方法。 然后,后者负责返回Response对象。 从高层次上讲,这是在Drupal应用程序和Symfony应用程序(或任何其他利用HTTPKernel组件的应用程序)中发生的。

HTTP内核和事件 (HTTPKernel and events)

HTTPKernel is the heart of any Symfony based application. Its handle() method, as we saw, has a great deal of responsibility in preparing a response and it does so in a workflow driven by events. This makes for a very flexible application where the heavy lifting is always delegated to listeners of these events.

HTTPKernel是任何基于Symfony的应用程序的心脏。 正如我们所看到的,它的handle()方法在准备响应中负有很多责任,并且它在由events驱动的工作流中也是如此。 这使得应用程序非常灵活,始终将繁重的工作委托给这些事件的侦听器。

If you look at the diagram from earlier, you can see this workflow depicted in the second column, and it essentially represents the glue between Symfony and the Drupal side of things.

如果您看一下前面的图,您会看到第二栏中描述的该工作流程,它实质上代表了Symfony和事物的Drupal方面的纽带。

It starts with the first event called kernel.request. Subscribers to this event handle various tasks. But two very important ones in Drupal 8 are the format negotiation and routing. The first determines the type of response that needs to be returned (html, json, image, pdf, etc) while the second determines what the code responsible for handling this is (the _controller key of a route definition inside the routing.yml file). But like in most steps in this event workflow, if a listener returns a response object, the process skips most of the further steps (stops propagation) and goes straight to kernel.response.

它从第一个事件kernel.request 。 该事件的订阅者处理各种任务。 但是在Drupal 8中两个非常重要的方面是格式协商和路由。 第一个确定需要返回的响应类型(html,json,图像,pdf等),第二个确定负责处理该响应的代码( routing.yml文件中路由定义的_controller键) 。 但是,就像此事件工作流程中的大多数步骤一样,如果侦听器返回响应对象,则该过程将跳过大多数其他步骤(停止传播),并直接进入kernel.response 。

The second event is kernel.controller which is called after the application knows which controller is responsible for handling the request. At this point, listeners can still perform some overriding operations on it. Closely following this step, the Kernel is responsible for resolving the arguments that get passed to the controller. One such operation in Drupal is loading objects based on IDs found in the request (for example nodes) and directly providing the controller with them. Then finally the controller gets called with the respective parameters.

第二个事件是kernel.controller ,在应用程序知道哪个控制器负责处理请求后调用该事件。 此时,侦听器仍可以对其执行一些替代操作。 在紧接此步骤之后,内核负责解析传递给控制器​​的参数。 Drupal中的一种此类操作是根据在请求中找到的ID(例如节点)加载对象,然后直接向控制器提供对象。 然后最后使用相应的参数调用控制器。

The controller is responsible for returning a response of some kind. If it returns a Response object, the process skips to the kernel.response event. Listeners to the latter can perform last minute modifications on the object such as modifying headers or the content itself. And after getting it from the handle() method, the front controller uses the send() method on the Response object to send it back to the user and terminates the process.

控制器负责返回某种响应。 如果返回Response对象,则该过程将跳至kernel.response事件。 后者的侦听器可以在对象上执行最后一刻的修改,例如修改标头或内容本身。 从handle()方法获取它之后,前端控制器在Response对象上使用send()方法将其发送回用户并终止该过程。

symfony event workflow

更深入地介绍渲染数组 (Going deeper with render arrays)

If the controller does not return a Response object, the Kernel fires one last event: kernel.view. Its subscribers are responsible for turning the result of the controller into an actual Response object. So this means that you have the option of returning from your controller any kind of object as long as you couple it with a VIEW event subscriber that turns that into a proper Response.

如果控制器未返回Response对象,则内核将触发最后一个事件: kernel.view 。 其订户负责将控制器的结果转换为实际的Response对象。 因此,这意味着您可以选择从控制器返回任何类型的对象,只要将其与VIEW事件订阅者耦合即可将其转换为适当的Response 。

However, as we’ve seen in the example, most of the time controllers will return a render array. Usually this represents the page’s main content (similar to page callbacks in Drupal 7).

但是,正如我们在示例中看到的那样,大多数时间控制器将返回渲染数组。 通常,这代表页面的主要内容(类似于Drupal 7中的页面回调)。

To handle this, Drupal 8 has a MainContentViewSubscriber responsible for transforming this array into proper Response objects. It does so by using a particular MainContentRenderer chosen during the format negotiation phase we’ve talked about before. And although there are a few such renderers already available, the default one used is the HtmlRenderer.

为了解决这个问题,Drupal 8具有MainContentViewSubscriber,负责将此数组转换为适当的Response对象。 通过使用我们之前讨论过的格式协商阶段中选择的特定MainContentRenderer来实现。 尽管已经有一些这样的渲染器可用 ,但默认使用的是HtmlRenderer 。

HTMLRenderer (HTMLRenderer)

Since this is the most commonly used type of main content renderer, let’s go in a bit deeper and see how this builds the page.

由于这是最常用的主要内容呈现器类型,因此让我们更深入地了解一下如何构建页面。

One of the cool things about this step in the process is the concept of page variants. This means that HTMLRenderer dispatches an event responsible for finding out which type of page is to be used to wrap the main content render array: RenderEvents::SELECT_PAGE_DISPLAY_VARIANT. By default, the SimplePageVariant is used unless the Block module is enabled. In that case the BlockPageVariant kicks in and allows the placement of the blocks in the regions around the main content. If you want, you can subscribe to this event in your own module and provide your own variant.

页面变体的概念是这一过程中最酷的事情之一。 这意味着HTMLRenderer调度一个事件,该事件负责找出用于包装主要内容渲染数组的页面类型: RenderEvents::SELECT_PAGE_DISPLAY_VARIANT 。 默认情况下,除非启用了“阻止”模块,否则将使用SimplePageVariant 。 在那种情况下, BlockPageVariant会加入 ,并允许将块放置在主要内容周围的区域中。 如果需要,您可以在自己的模块中订阅此事件并提供自己的变体。

All of this happens within the prepare() method of the HTMLRenderer which supplies the renderResponse() method with a #type => 'page' render array that wraps the main content one. The latter two get in turn wrapped into a #type => 'html' render array which gets finally rendered using the Renderer class (the equivalent of drupal_render() in Drupal 7). The resulting HTML string gets added to the Response object and gets returned to the front controller.

所有这些都发生在HTMLRenderer的prepare()方法内,该方法为renderResponse()方法提供了#type => 'page'渲染数组,该数组将主要内容包装为一个。 后两个又被包装成一个#type => 'html'渲染数组,该数组最终使用Renderer类渲染 (相当于Drupal 7中的drupal_render() )。 结果HTML字符串将添加到Response对象,并返回给前端控制器。

Although this is a very high level overview of the process, this is basically what happens. Now we have a Response object which means the Kernel can dispatch its kernel.response event. And right after this, the front controller can send the Response back to the user and terminate the process.

尽管这是该过程的非常高级的概述,但是基本上就是这样。 现在,我们有了一个Response对象,这意味着内核可以调度其kernel.response事件。 然后,前端控制器可以将Response发送回用户并终止该过程。

结论 (Conclusion)

In this article we’ve taken a journey into Drupal 8 (and Symfony2) internals by following the pipeline from a user request to the response the server returns. We’ve seen how Drupal 8 leverages the HTTPKernel and HTTPFoundation Symfony2 components and how it basically lives on top of them. Additionally, we’ve seen how the glue between them is made up of the events the Kernel dispatches to which Drupal subscribes for all of its functionality. Finally, we’ve seen how HTML pages are built and returned to the user with the help of the render pipeline.

在本文中,我们通过遵循从用户请求到服务器返回响应的管道,深入了Drupal 8(和Symfony2)内部。 我们已经看到了Drupal 8如何利用HTTPKernel和HTTPFoundation Symfony2组件以及它基本上如何生活在它们之上。 此外,我们已经看到了它们之间的粘合是如何由内核调度的事件组成的,Drupal为其预订了所有功能。 最后,我们已经了解了如何在渲染管道的帮助下构建HTML页面并将其返回给用户。

I believe that understanding what is going on under the hood in a Drupal 8 application will allow you to create awesome applications by knowing exactly which entry points you have into this flow. And I believe that if you take away only one thing from this article, it should be the word flexibility. Because the flexibility for building exactly what we need in Drupal 8 far surpasses anything in Drupal 7. It has truly become modern.

我相信,了解Drupal 8应用程序内幕的内容将使您能够确切地知道此流程中的入口点,从而创建出色的应用程序。 我相信,如果您仅从本文中删除一件事,那就应该是灵活性一词。 因为精确地构建我们在Drupal 8中所需的功能的灵活性远远超过了Drupal 7中的任何功能,所以它已经真正地变得现代了。

翻译自: https://www.sitepoint.com/from-request-to-response-a-journey-into-drupal-8-internals/

drupal8文档

中文drupal教程(3)响应对象Response及Cookie设置 要理解这一部分推荐先了解RFC2616文档,RFC文档就是互联网技术的魂,该文档定义了http协议,里面详细阐述了各类http头的使用 阅读详情

相关推荐

drupal的json:api模块 Get,Post方法使用

drupal的json:api模块 Get,Post方法使用细节 drupal可以通过启用json:api模块来编写接口,实现作为前后端解耦的功能,官网对于具体的使用有英文文档可供参考,这里补充一些踩坑细节,通过postman测试接口: get方法: 官网给的格式如下: // 例如是文章节点的get访问形式,得到所有文章 URL: http://example.com/jsonapi/node/a...

weixin_45455380的博客 1081

Drupal8 入门教程(一)安装部署


 一、Drupal简介   Drupal 是使用PHP语言编写的开源内容管理框架(CMF),它由内容管理系统(CMS)和PHP开发框架(Framework)共同构成。连续多年荣获全球最佳CMS大奖,是基于PHP语言最著名的WEB应用程序。截止2011年底,共有13,802位WEB专家参加了Drupal的开发工作;228个国家使用181种语言的729,791位网站设计...

Tinywan 4976

【高清照片】深圳光博会看PCIe Over Fibre 实现方案

本文分析了PCIe over Fibre技术及其在数据中心的应用前景。该技术通过光纤延伸PCIe总线,解决了传统铜缆距离限制问题,支持跨机架资源池化。目前主要有两种实现方式:CDFP混合光缆方案和Retimer转接卡方案,各有优缺点。文章还探讨了CDFP接口的现状、低速信号传输解决方案,以及PCIe速率与光通信发展的对应关系。最后对比了PCIe光缆与以太网光缆的关键差异,指出PCIe光互连在协议透明度和边带信号处理上的特殊要求。随着标准推进,PCIe over Fibre将成为数据中心扩展高带宽、低时延互连

Saniffer的博客 1406

drupal文档

Drupal.org社区文档由Drupal团队负责维护。 用户与建站者指南 了解Drupal 学习有关Drupal的理念,技术簇群,术语以及资源。 安装指南 安装Drupal以及相配套的第三方模块与主题。同一个安装实现多站点技术。从其他CMS和地址平台迁移过来可能遇到的问题。 管理指南 管理用户和内容,执行备份与升级,网站安全,提高性能等等。受益群体:系统和网站管理人

sinat_37269733的博客 904

GN算法边介数计算优化指南:如何提升大规模社交网络分析效率

本文深入探讨了GN算法在大规模社交网络分析中的核心瓶颈——边介数计算,并提供了从算法优化到工程部署的完整性能提升方案。通过引入Brandes算法、并行计算、增量更新及分布式处理等策略,有效解决了传统GN算法在处理百万级网络时效率低下的问题,为社交网络社区划分等实际应用提供了高效解决方案。

weixin_29196613的博客 491

INCA_ProF脚本教程

一、首先INCA软件是当前主流标定开发软件之一,尤其在动力系统控制器的标定中应用非常广泛;与此同时ProF编程脚本是INCA软件提供各种实用功能之一,使用者可根据需求编写ProF脚本语言对ECU闪存编程等各种自定义操作。 二、然而ProF脚本语言在ETAS的官网或其他网络上并没有专门的使用教程,通常只有ETAS技术支持人员提供的ProF Documentation文档或少量可参考的Demo案例,然而ProF Documentation文档仅涉及ProF语言的函数的操作说明,没有从全局的框架上介绍Pro

weixin_29389627的博客 1万+

Drupal—关于Drupal8的详细安装建站教程

什么是drupal?       drupal是一个好用且功能强大的内容管理系统(CMS),通常也被称为是内容管理框架(CMF),由来自全世界各地的开发人员共同开发和维护,目前最新版本是Drupal 8。 安装drupal所需基础       建站环境:Windows或Linux操作系统      Web服务器:Apache,Nginx,Lighttpd,或微软的IIS服务器,只要能支

一片藍天下 1万+

【吐血整理-历时两个月,长达万字】FDTD Solutions学习笔记

原教学视频来自于Ansys-Lumerical官方的FDTD100,所看视频来自B站大佬UP主 【Nestor_呐等】 的幸苦翻译,本文内容粘贴自我个人在学习FDTD100时,通过字幕和一些个人理解总结的一份word。整理不易,强烈建议收藏!...

weixin_45719141的博客 10万+

Drupal安装配置文档(一)

Drupal安装配置文档 前段时间帮公司弄了个内部网站,作为一个内部信息交流平台,发现一个叫Drupal的内容管理系统很适合,于是研究了一番。由于篇幅有限,本文档分为(一)(二)两篇,第一篇讲述drupal及其环境的安装,第二篇写了Drupal的配置使用以及实践,由于Drupal涉及PHP、网站之类,所以没有深究,但现在公司已经能很好的用上drupal了,我个...

weixin_34290390的博客 315

threejs中使用Reflector实现出倒影效果,并实现背景透明的效果(Reflector镜面背景透明, 倒影弱化)

在项目中遇到要实现倒影效果,threejs给我们提供了Reflector,可以轻松完成镜面效果,实现倒影。但背景不透明;并且反射出的倒影太亮了;网上没搜到解决方案, 自己修改了下源码实现了想要的效果,做个记录...

weixin_40856652的博客 5729

ABAP 7.40 FOR 表达式与 REDUCE 构造运算符深度解析:从语法新特性到真实项目实践

ABAP 7.40引入了FOR和REDUCE表达式语法,使代码更简洁和函数式。FOR支持内表迭代和条件迭代,可配合VALUE构造新内表,替代传统LOOP。REDUCE用于归约运算,将多值折叠为单一结果,如求和、拼接等。这些新特性让ABAP更现代化,与SAP新架构协同更好,提升了开发效率和代码可读性。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 324

Drupal安装配置文档(二)

3、Drupal的设置、使用 3.1整体界面规划内容分布 主要内容如导航所示 导航:首页公共信息论坛内部应用关于倍儿悦 公共信息用来存放公司的公共文档,包括人事行政IT等公共资料; 论坛用作公司内部交流使用,分公共论坛技术论坛项目论坛内部论坛; 内部应用用以存放公司的应用平台信息,以博客形式管理; 扩展内容:...

weixin_33845477的博客 290

全志V3S嵌入式驱动开发(解决kernel 5.2.y wifi驱动问题)

​【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】 wifi模块,之前测试的时候,开发板上用的是esp8089,当时内核时4.14.y,测试也是通过的。链接地址在这里, https://blog.csdn.net/feixiaoxing/article/details/131178420?spm=1001.2014.3001.5501 那个时候测试的时候,我们就说过,wifi驱动可能是除了镜像制作之外,最复杂的一个

嵌入式-老费,一个分享专业嵌入式知识的blog 1180

drupal 8漏洞_在Drupal 8中可以期待什么

drupal 8漏洞 Max Bronsema是位于华盛顿贝灵厄姆的西华盛顿大学(WWU)的首席架构师和Web通信技术总监。 之前,他是大学的Drupal首席架构师,带领一个小型学生团队为WWU面向公众的站点开发创新的Drupal解决方案。 我能够在Linuxfest Northwest 2016之前赶上Max,在那里他将领导D8内核和发行冲刺 ,谈论他对Drupal 8的想法。 您将...

cumo3681的博客 209

uniapp - 解决 uni.chooseImage 在苹果 IOS 真机上点击没反应的问题,苹果手机点击 uni.chooseImage方法不生效,也不报任何错误(解决苹果ios系统点击无效问题)

uniapp小程序h5网页苹果ios系统点击uni.chooseImage不执行点击无效,uniapp使用uni.chooseImage方法点击没反应怎么办,uniappuni.chooseImage在ios苹果手机运行点击不触发,uniappuni.chooseImage苹果ios系统点击无效,uniapp项目ios端云打包之后uni.chooseImage不生效了,uniapp打包之后uni.chooseImage()无法打开相机,uniapp苹果手机无法打开相机和相册,uniapp网页h5微信支

🏆 前端领域优质创作者 1万+

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

推荐项目:在树莓派上搭建Drupal的奇妙之旅 —— Drupal Pi

推荐项目:在树莓派上搭建Drupal的奇妙之旅 —— Drupal Pi 项目介绍 Drupal Pi是一个令人兴奋的开源项目,由知名的技术作者Jeff Geerling打造,旨在将强大的内容管理系统Drupal带到小型但功能强大的树莓派上。这个项目简化了在单个树莓派设备上部署Drupal的过程,利用Docker和Nginx的力量,让即使是没有服务器管理经验的开发者也能轻松建立起自己的Drupal...

gitblog_00497的博客 874

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

Next.js for Drupal完全指南:构建下一代Drupal前端的终极方案

Next.js for Drupal是为Drupal网站构建下一代前端的完整解决方案,它集成了静态站点生成(SSG)、服务器端渲染(SSR)、增量静态再生(ISR)、多站点支持、身份验证、Webforms、Search API、国际化(I18n)和预览模式等强大功能,完美兼容JSON:API和GraphQL。本指南将带你快速掌握这一工具的核心优势和使用方法,让你轻松打造高性能、现代化的Drupal

gitblog_00486的博客 939

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

Drupal8 开发初学者指南(三)

网络服务可以被定义为网络中两个应用程序之间的通信桥梁。W3C 通常将网络服务定义为:“一个设计用于支持网络中可互操作机器间交互的软件系统。互联网服务创新是组织之间以及与客户沟通的重要途径。与传统的客户/服务器模型不同,例如网络服务器或网页框架,网络服务不向用户提供图形用户界面。相反,它们通过网络上的自动接口提供业务逻辑、数据和流程。应用程序相互连接,而不是与客户连接。工程师可以将网络服务添加到 GUI(例如网页或可执行系统),以向用户提供特定功能。让我们来看看本章中我们将要遵循的示例。

龙哥盟 785

使用 gatsby-source-drupal 构建 Drupal 驱动的内容站点:以 using-drupal 示例项目为实战蓝本

> 本文以 Gatsby 官方仓库中的 [using-drupal 示例项目](https://link.gitcode.com/i/55bcf5838c23206a8c69ce4c0e531033) 为主体骨架,结合 [gatsby-source-drupal](https://link.gitcode.com/i/3c9500fd3716195a08bbc3c07f202ae7) 源码插件,系

gitblog_01028的博客 203

Drupal8 模块开发第二版(四)

应用性能始终是使用 Drupal 进行开发时的一个痛点,这有很多原因。例如,PHP 并不是最快的语言。许多初学者 Drupal 开发者会陷入众多模块的诱惑,过度启用不必要的模块。确实,Drupal 架构也不是最高效的。然而,为了辩护,一个非常复杂的架构,它提供了很多开箱即用的功能,将有一些速度上的权衡。在这个游戏中,一个关键组件却是缓存。对于那些不熟悉这个术语的人来说,缓存是一种存储处理过的代码副本(或其结果)的应用策略,以便在后续请求时更快地将它们提供给用户。例如,当你访问一个网站时,你的浏览器很可能会在

龙哥盟 1121

基于 Next.js 静态生成构建 Drupal 驱动博客:cms-drupal 官方示例实战解析

本文以 Next.js 仓库中的 [cms-drupal 示例](https://link.gitcode.com/i/51293c06ee82dc8146a09d612acec5db) 为主体,完整讲解如何用 Next.js 的 Static Generation(静态生成)能力将 Drupal 作为数据源构建博客站点:从示例脚手架的创建、环境变量配置,到 `getStaticProps`/`g

gitblog_01192的博客 358

Drupal10 开发秘籍(二)

在本章中,我们将使用控制器创建自定义页面。控制器是一个类,它包含一个在 Drupal 访问特定路径时构建页面的方法。创建自定义页面允许你扩展 Drupal 超出仅内容页面的范围。本章将涵盖创建自定义页面、从路径接收动态值以及提供 JSON 或文件下载响应的过程。在本章中,我们将学习以下配方:定义控制器以提供自定义页面使用路由参数创建动态重定向页面创建 JSON 响应提供文件下载服务每当对 Drupal 网站发出 HTTP 请求时,URL 的路径会被路由到控制器。

龙哥盟 1068

awesome-copilot 中 Drupal Expert 自定义 Agent 全解析:基于 PHP 8.3+ 的 Drupal 开发现代最佳实践

本文以 [awesome-copilot](https://link.gitcode.com/i/bdf6930dab7ac277d587a930e9186823) 仓库中收录的 [Drupal Expert 自定义 Agent](https://link.gitcode.com/i/6711a94492637b9de090096668562505) 为线索,系统讲解如何借助 GitHub Cop

gitblog_00495的博客 370

fullcalendar中文文档_Drupal 常用模块(中文)

Drupal 是一个强大的内容管理框架,即使没有编写任何代码的情况下,也可以配置构建出极富弹性且创造力的架站平台,这些都离不开社区提供的模块,多样化的模块组合使得网站有更多的想象空间,列表给出了下载安装量,供参考。你不一定能看到底部,底部还有常用的开发文档,欢迎收藏 :)或者 Fork:biaogebusy/drupal-modules-cn​github.com幻灯片 CarouselSlick...

weixin_39574943的博客 1093

强力推荐:drupal-check —— 您的 Drupal 代码质量守护者

强力推荐:drupal-check —— 您的 Drupal 代码质量守护者 在当今高速发展的Web开发领域,静态分析工具已成为保证代码质量不可或缺的一环。针对Drupal这一强大的内容管理系统,我们有了一位特别的“助手”——drupal-check。这篇文章将深入探讨drupal-check的独到之处,为何它对于Drupal开发者而言是必不可少的工具,并展示如何利用它提升您的开发效率和代码健壮性...

gitblog_00906的博客 579

drupal 8 php filter,php – Drupal 8外部/自定义身份验证提供程序

我正在尝试使用Drupal 8作为我们的客户网站.我们的客户通过我们自己的身份验证应用程序进行身份验证,该应用程序与我们的文档存储(而不是MySQL)通信,以对用户进行身份验证并为他们提供唯一的会话ID(JWT最终,但那是另一天和会话)我们可以使用查询REST API并在我们的任何其他自我应用程序中获取用户数据.我们正在从一个旧的基于JSP的网站转移到drupal,因为我们的应用程序现在用Symf...

weixin_33542015的博客 142
上一篇: mac markdown_适用于Mac的最佳Markdown编辑器
下一篇: 9个最受欢迎的免费WordPress主题
culi4814
博客等级 码龄11年 38粉丝 156原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值