When you think of training, perhaps you remember an event that you were sent to where you had to learn something boring for your job. The word training does not usually make people smile and jump for joy, that is unless you are talking about Drupal training. These gatherings spread the Drupal knowledge and increase diversity in the community of Drupal developers.
Drupal 8 has a great AJAX form API which includes some tools to create modal dialogs using the jQuery modal library. The Examples module even demonstrates how to create a custom form and display it in a modal window. But what if what you want to do is display an already created form in a modal? How do we do that? Let's see how to do it with an example. Let's display the node add form in a modal window.
TL;DR: For PHP Hexadecimals, Decimals and Octals are all Integers, so they must be declared as
While I was working on a patch I had to write the docblock of a function which received a hexadecimal number and I wasn't sure what I was supposed to put in the @type param.
CKEditor is well-known software with a big community behind it and it already has a ton of useful plugins ready to be used. It is the first and only WYSIWYG text editor to ship with Drupal 8 core. Unfortunately, the many plugins provided by the CKEditor community can't be used directly in the CKEditor that comes with Drupal 8. It is necessary to let Drupal know that we are going to add a new button to the CKEditor.
Recent blog posts
- Global Training Day - fun and accesible to all!
- Display forms in a modal dialog with Drupal 8
- How to declare hexadecimals on a PHPDoc Block
- Using CKEditor plugins in Drupal 8
- Learn with dinarcon in his upcoming Drupal tour