for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Drupal\editor\Entity\Editor;
/**
* Implements hook_theme().
*/
function url_embed_theme($existing, $type, $theme, $path) {
$existing
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$type
$theme
$path
return [
'responsive_embed' => [
'variables' => [
'url_output' => NULL,
'ratio' => NULL
]
],
];
}
* Implements hook_ckeditor_css_alter().
function url_embed_ckeditor_css_alter(array &$css, Editor $editor) {
$filter = $editor->getFilterFormat()->filters('url_embed');
$config = $filter->getConfiguration();
// Add the responsive embed css if the url_embed module has it enabled
if (!empty($config['settings']['enable_responsive'])) {
$css[] = drupal_get_path('module', 'url_embed') . '/css/url_embed.responsive.css';
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.