FieldStorageDefinitionInterface::getOptionsProvider

public FieldStorageDefinitionInterface::getOptionsProvider($property_name, FieldableEntityInterface $entity)

Gets an options provider for the given field item property.

Parameters

string $property_name: The name of the property to get options for; e.g., 'value'.

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity for which the options should be provided.

Return value

\Drupal\Core\TypedData\OptionsProviderInterface|null An options provider, or NULL if no options are defined.

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 146

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getOptionsProvider($property_name, FieldableEntityInterface $entity);
doc_Drupal
2016-10-29 09:12:45
Comments
Leave a Comment

Please login to continue.