You are here

public function BundlePluginHandlerInterface::getFieldDefinitions in Entity API 8

Gets the field definitions for a specific bundle.

Parameters

string $bundle: The bundle name.

Return value

\Drupal\entity\BundleFieldDefinition[] An array of bundle field definitions, keyed by field name.

1 method overrides BundlePluginHandlerInterface::getFieldDefinitions()
BundlePluginHandler::getFieldDefinitions in src/BundlePlugin/BundlePluginHandler.php
Gets the field definitions for a specific bundle.

File

src/BundlePlugin/BundlePluginHandlerInterface.php, line 35

Class

BundlePluginHandlerInterface
Handles plugin-provided bundles.

Namespace

Drupal\entity\BundlePlugin

Code

public function getFieldDefinitions($bundle);