You are here

public function EntityDataDefinitionInterface::setBundles in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setBundles()
  2. 9 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setBundles()

Sets the array of possible entity bundles.

Parameters

array|null $bundles: The array of possible bundles, or NULL for any.

Return value

$this

1 method overrides EntityDataDefinitionInterface::setBundles()
EntityDataDefinition::setBundles in core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php
Sets the array of possible entity bundles.

File

core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php, line 46

Class

EntityDataDefinitionInterface
Interface for typed data entity definitions.

Namespace

Drupal\Core\Entity\TypedData

Code

public function setBundles(array $bundles = NULL);