Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Learn Drupal 8 module development with examples

Học phát triển module Drupal 8 qua các ví dụ thực tế

Học phát triển module Drupal 8 qua các ví dụ thực tế

Hướng dẫn viết code Drupal 8 với nhiều ví dụ minh họa cụ thể

4.5
(1,223 đánh giá)
5,101 học viên
Giảng viên
Nikolay Borisov
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
3.0 giờ video
29 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Nắm được cách xử lý các tình huống thực tế khi phát triển module Drupal
Khai báo một module tùy chỉnh trong Drupal 8
Hiểu về routes trong Drupal 8
Tạo controllers trong Drupal 8
Đăng ký callback cho events và thực thi code
Tạo custom service
Tạo custom form
Triển khai twig template cho controller
Thêm file css vào twig template
Tạo custom block trong module
Hiểu tổng quan về renderable arrays trong Drupal 8
Ví dụ về cách inject Service vào custom service
Inject service vào controller
Tạo custom form
Viết validation cho form bất kỳ trong Drupal 8
Tìm hiểu cách triển khai Ajax forms
Tạo trang quản trị tùy chỉnh với cấu hình
Hiển thị cấu hình tùy chỉnh của bạn
Khai báo permissions tùy chỉnh
Áp dụng permissions để giới hạn truy cập trang
Áp dụng permissions để giới hạn truy cập một phần trang

Yêu cầu

Đã quen thuộc với Drupal
Có kinh nghiệm với PHP

Đối tượng phù hợp

Dành cho lập trình viên Drupal muốn học viết code
Lập trình viên PHP muốn học lập trình Drupal 8
Lập trình viên Symfony muốn học cách triển khai code trong Drupal
Những người yêu thích Drupal và lập trình
Themer và site builder Drupal muốn học lập trình
Tất cả mọi người sẵn sàng học phát triển module Drupal

Nội dung khóa học

9 phần • 28 bài giảng
1 Thiết lập môi trường phát triển
2 Kích hoạt thông báo lỗi
1 Khai báo và kích hoạt module
2 Controller và route
3 Mở rộng class ControllerBase
4 Tạo custom twig template
5 Thêm libraries
6 Bonus: Danh sách Superhero với hiệu ứng tên nhân vật
1 Ví dụ hero block
2 Ví dụ renderable array trong block
1 Services và Dependency Injection container
2 Custom service
3 Ví dụ injection services
4 Inject service vào controller
1 Custom form
2 Custom form elements
3 Thay đổi form bất kỳ với hook_form_alter
4 Validation
5 Ajax Form
1 Trang quản trị
2 Hiển thị cấu hình
1 Triển khai custom hook
2 Tìm existing events
3 Event subscriber
1 Khai báo custom permission
2 Triển khai custom permission
3 Cách tìm machine names của Permissions để sử dụng trong module
1 Thay đổi route từ module tùy chỉnh và event subscriber

Giới thiệu khóa học

It has never been better time to learn Drupal 8 module development. 

Thats because Drupal 8 is already the better technologically and the faster way to build Drupal applications (compared to Drupal 7).

Drupal 8 is built on top of Symfony so the good news are that as you learn how to create controller for example in Drupal 8 - the way you would do it in Symfony is quite the same and vice versa. Thats great because that actually means that the skills are transferable and that we are not going to be bogged down into endless drupalisms (Drupal-specific terms).

In this course we are going to learn the most popular sections of the Drupal 8 module development:

  • we are going to declare our own custom module
  • we are going to learn what is a controller and we are going to build our own controller class
  • we are going to learn how to implement new routes in the .routing.yml file
  • we are going to learn how to render controller content in twig template
  • how to include libraries (assets) when certain templates are being rendered
  • how to create custom blocks
  • have a good understanding of what Renderable arrays are
  • what in general are Services
  • how to declare a service
  • how to inject a service into our own service
  • how to inject a service to a container
  • how to create custom forms and act on submission
  • how to validate forms
  • how to alter any form
  • how to create an AJAX form
  • how to save our custom configuration to our won custom form admin page
  • how to render our custom configuration
  • how to declare permissions and how to make them work to restrict stuff ...

We are going to implement as much examples as possible and always I attached for you the final files so that you could easily compare with the final result and not waste time on tracing a tiny-tiny bug.

I tried to make it as clear as possible and to share as much as possible examples that I face in my everyday work process as PHP Drupal developer. The skills that are covered in this course are surely stuff that you would need if your are building complex Drupal 8 applications and are "Must have" as a knowledge for every Drupal developer...

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Content Management Systems
Hiển thị tất cả khoá học Drupal
Hiển thị tất cả khoá học Php
Hiển thị tất cả khoá học Web Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊