I am running into this ->
in Drupal and cant find any docs on it.
I am using it like this print $node->content['field_pr_link'];
is it a Drupal thing or PHP?
It's PHP. You are using it to access the content field on the node object.
See http://php.net/manual/en/language.oop5.php
That is the PHP "Operator Object". It is very poorly documented in the PHP manual. It allows you to reference the variables, constants, and methods of an object.
$a = $ObjectInstance->var; # get variable or constant
$ObjectInstance->var2 = "string"; # set variable
$ObjectInstance->method(); # invoke a method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With