how to check all variable exist
Exp in Controller return this to pass to twig template :
return $this->render('index/index.html.twig', [ 'department'=>$departments,'URILink'=>$URILink,'departmentDetail'=>$departmentDetails, 'contentCell'=>$this->mContentCell ]);
then twig template can reuse those variable by doin this
index.html.twig:
</div> {{ include ('department_list.html.twig',{'departments':department,'URILink':URILink}) }}</div>
for Comparison in smarty template we can use this:
get_template_vars() — returns assigned variable value(s)
how to do that with same analogy in twig template? in case i want to make sure all variable have been passed correctly