public BaseFieldDefinition::setTargetEntityTypeId($entity_type_id)
Sets the ID of the type of the entity this field is attached to.
string $entity_type_id: The name of the target entity type to set.
$this
public function setTargetEntityTypeId($entity_type_id) { $this->definition['entity_type'] = $entity_type_id; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!BaseFieldDefinition.php/function/BaseFieldDefinition::setTargetEntityTypeId/8.1.x