Dear friends,
can someone explane how classes works in Drupal ?

For example how know wich class used for get field's info from view?

Thanx a lot

Comments

hiramanpatil’s picture

For what purpose do you need this information? Please explain in details.

Thanks

Nil.Ned’s picture

Hi @hiramanpatil,
thank you for the support...

I reading that Drupal 8 based on classes and this is one difference between D7/D8 ... Good.

Before in D7 I not have necessity to import something but everithings was in arrays/object and I can saw it using devel(), now for example when use hook_views_pre_render in D8 I try to search the info using kint($view)but nothing that help me found for manage results.

I suppose that for get the pre_render's info I need USE some classes, I found this classes list :
https://api.drupal.org/api/drupal/classes
that rappresents all classes available in D8 .

I'm confused because "What is the question I should ask to what class I should use? and How understand wich info getting to me the class? "
I found thousand classes and for me is hard to understand wich class usig for something.

Thanx for the support.

Jaypan’s picture

It's pretty much impossible to answer your question in a single post. You'll need to spend some time reading about OOP php and then do some Drupal tutorials first. Then when you have a more specific question, we'll be able to help you.