How to get taxonomy term values? In my user entity, I have a term reference. In that vocabulary, I have a regular field. How can I fetch that field's value? I tried the below in  devel/php to no avail.

$user = Drupal\user\Entity\User::load(17);
$dept = $user-&gt;field_department-&gt;entity;
\dpm($dept-&gt;field_administrator_e_mail-&gt;value);


My end goal is to send the email to the department's administrator when a user is created.

UPDATE: I also tried the below:

$user = Drupal\user\Entity\User::load(17);
$dept = $user-&gt;field_department;
\dpm($dept-&gt;name);
Your missing link is the entity function, which returns the referenced entity object:

$host_entity-&gt;host_field-&gt;entity-&gt;remote_field-&gt;value