public function EntityDataDefinitionInterface::setBundles
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\TypedDataCode
public function setBundles(array $bundles = 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!Entity!TypedData!EntityDataDefinitionInterface.php/function/EntityDataDefinitionInterface::setBundles/8.1.x