Embed Youtube Vimeo videos by placing the URL

In wordpress I am able to paste a Vimeo or Youtube URL into any text editor and the video will be automatically embeded. No need to include embed code.

How can I do that in Drupal 8?

Not only is that a very nice and practical feature but also the videos are responsive.

Any suggestions are greatly appreciated.

Theme and module.module file

Hello,

I tried Drupal 8, i created a module called 'book' located in sites/all/modules/book and i created a controller, form... without problem.
But when i tried to use https://www.drupal.org/docs/8/creating-custom-modules/theming, i created book.module file, i followed the documentation but my template is not rendered. Moreover it seems that my book.module is not working because i put a die('dead !'); inside and nothing appear, i got the page without template.

A single custom block template for a few arbitrary blocks?

I have a few blocks I would like to use one common custom template for and I cannot figure out how to go about it.
Of course I can create N copies of my custom template each named after an individual block but then I will have to maintain these N identical copies in case of any changes - not nice. As far as I understand, the machine names of the blocks are beyond my control, at least I can't see how I possibly could [re]name N arbitrary blocks so that they follow a similar naming pattern and I could use one template for all of them.
Any ideas?

Is Drupal the Best Platform for Higher Education Websites?

About 28% of all .edu websites worldwide use Drupal. That is double the number of the nearest competitor, WordPress. Drupal is also used by 7 out of 10 top universities and educational institutions around the world. That makes a convincing argument for rating Drupal as the best platform for higher education websites.

Unable to check update status for Drupal core or installed modules

After each manually check for updates or cron run, I get no further information about available updates for core or modules. Instead I am always told that the last check was 1 month ago.

The log message gives me next warning :

global variable in .module not seen

Hello everybody
I cant understand why my global isn't seen anywhere : I've got a form class, and a .module. Into the .module I wrote :

$lol= 'test';
use Drupal\Core\Template\Attribute;

function mymodule_theme_fx_links($variables) {
  global $lol;
  ksm($lol); // prints NULL
...

If I try from the class : NULL, as well.
What do I miss ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x