Form custom validation after hook_form_alter() in D8

In D7, a module could implement hook_form_alter() to add to a form being built. And you could use:

$form['#validate'][] = 'my_validation_function';

to cause my_validation_function(...) to be called to do custom validation on submission.

In D8, hook_form_alter() (and hook_form_formid_alter()) work the same, but I haven't figured out how to get custom validation to happen. When I attempt the D7 approach, I get "The website encountered an unexpected error..."

Drupal 8 in load balancing with Apache mod_proxy return Error 302

Hallo Community, we are experiencing a blocking issue creating a Drupal 8 installation in load balancing using Apache mod_proxy. We are running a front end running Apache 2.4.10, Debian Linux 8: on it mod_proxy behaves as a Reverse Proxy and forward request to two different machines, same Debian Linux and Apache version. The two installations share the file system accessing an NFS share in another machine on the same subnet.
The Drupal version running is 8.2.3- 2016.11.16, Php version is Php 5.6.292.
We have registered a domain that point to the load balancing engine.

How to wrap text around image in Teaser (inline image)?

I think i saw a module, but it was only for D7 to do this.

How do i wrap the text around my image for my teaser in D8?

Thank you,

Url to Video Filter module

I've just released the Url to Video Filter module.

This module creates an input filter that can be used in a text format, that will automatically parse YouTube and/or Vimeo URLs into embedded videos. This means that any field that uses text formats can have URLs directly pasted into the body, and the URL will be replaced with the relevant video.

How to make a website using drupal 8

Hi there, i am a new to drupal and i'm wondering, is there any video tutorial on how to make a real website in drupal 8? All i found is some simple stuff but nothing like a real modern website. Thanks

file name suggestion

I made a customized page by VIIEWS structure that has customized path address for example: path/mypage

I used debug and file name suggestion for this page:

-- FILE NAME SUGGESTIONS:
* page--mypage.html.twig
x page.html.twig
--

-- BEGIN OUTPUT from 'core/themes/mystyle/templates/page.html.twig' --

and i made "page--mypage.html.twig" file in output address but drupal cant load this and the main file for this page is "page.html.twig" still

I cleaned cash too.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x