public BaseFieldDefinition::getTargetBundle()
Gets the bundle the field is attached to.
This method should not be confused with EntityInterface::bundle() (configurable fields are config entities, and thus implement both interfaces):
string|null The bundle the field is defined for, or NULL if it is a base field; i.e., it is not bundle-specific.
Overrides FieldDefinitionInterface::getTargetBundle
public function getTargetBundle() { return isset($this->definition['bundle']) ? $this->definition['bundle'] : NULL; }
© 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::getTargetBundle/8.1.x