Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldDefinition.php

function FieldDefinition::setTargetBundle

Set the target bundle.

Parameters

string $bundle: The target bundle.

Return value

$this

File

core/lib/Drupal/Core/Field/FieldDefinition.php, line 90

Class

FieldDefinition
A class for defining entity field definitions.

Namespace

Drupal\Core\Field

Code

public function setTargetBundle($bundle) {
    $this->definition['bundle'] = $bundle;
    return $this;
}
RSS feed
Powered by Drupal