How to get the paragraph information in a custom display suite code item I want to add a custom field for a paragraph item in display suite,
but I don't know the name of variable.

I try a print_r($entity) and nothing is returned. How can I find out what the object name is?
I'm using a view and want to display the first paragraph of text type
  and the first paragraph of data type . But only the first one .
  Currently they all come out in the view


In Views click on your paragraph field, mine is called "test". 

Then in Multiple Field Settings, change Display to 1