Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit b3405332 authored by Abel Santos's avatar Abel Santos
Browse files

OEL-1280: Fix typos at name of hook_theme_suggestions_HOOK_alter.

parent d8476b80
No related branches found
No related tags found
5 merge requests!121OEL-1421: Fix cosmetic changes.,!116OEL-1394: Merge 1.x into EPIC-1293-Project, align with new version of card:search pattern,!115Upate the EPIC-1293-project,!105EPIC: OEL-1255: Migrate paragraphs,!93[OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme
......@@ -29,7 +29,7 @@ use Drupal\paragraphs\Entity\Paragraph;
*
* Adds a bare, markup-free template suggestion to all paragraph fields.
*/
function oe_whitelabel_paragraphs_paragraphs_theme_suggestions_field_alter(array &$suggestions, array $variables): void {
function oe_whitelabel_paragraphs_theme_suggestions_field_alter(array &$suggestions, array $variables): void {
$element = $variables['element'];
// Do not output field labels and wrapping markup for paragraph fields.
......@@ -171,7 +171,7 @@ function oe_whitelabel_paragraphs_preprocess_paragraph__oe_text_feature_media(ar
$variables['image'] = ImageValueObject::fromStyledImageItem($thumbnail, 'oe_bootstrap_theme_medium_no_crop');
}
elseif ($is_video) {
_oe_whitelabel_featured_media_set_embedded_media($variables, $media, $cacheability, $source);
_oe_whitelabel_paragraphs_featured_media_set_embedded_media($variables, $media, $cacheability, $source);
}
$cacheability->applyTo($variables);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment