public EntityDataDefinitionInterface::setBundles(array $bundles = NULL)
Sets the array of possible entity bundles.
Parameters
array|null $bundles: The array of possible bundles, or NULL for any.
Return value
$this
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);
Please login to continue.