function mytheme_preprocess_node(&$variables) { switch ($variables['node']->getType()) { case "video": // ... break; case "something_else": // ... break; } }
function mytheme_preprocess_node(&$variables) { switch ($variables['node']->getType()) { case "video": // ... break; case "something_else": // ... break; } }