public FieldStorageDefinitionInterface::getOptionsProvider($property_name, FieldableEntityInterface $entity)
Gets an options provider for the given field item property.
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.
\Drupal\Core\TypedData\OptionsProviderInterface|null An options provider, or NULL if no options are defined.
public function getOptionsProvider($property_name, FieldableEntityInterface $entity);
© 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!Field!FieldStorageDefinitionInterface.php/function/FieldStorageDefinitionInterface::getOptionsProvider/8.1.x