function EntityDataDefinitionInterface::setBundles

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setBundles()
  2. 8.9.x core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setBundles()
  3. 10 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.