Search for getOption

  1. Search 7.x for getOption
  2. Search 9.5.x for getOption
  3. Search 10.3.x for getOption
  4. Search 11.x for getOption
  5. Other projects
Title Object type File name Summary
BaseFieldDefinition::getOptionsProvider function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Gets an options provider for the given field item property.
BlockContentAddLocalAction::getOptions function core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php Returns options for rendering a link for the local action.
BrowserTestBase::getOptions function core/tests/Drupal/Tests/BrowserTestBase.php Helper function to get the options of select field.
CompiledRoute::getOptions function core/lib/Drupal/Core/Routing/CompiledRoute.php Returns the options.
ContextualLinkDefault::getOptions function core/lib/Drupal/Core/Menu/ContextualLinkDefault.php Returns the link options passed to the link generator.
ContextualLinkDefaultTest::testGetOptions function core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php @covers ::getOptions
ContextualLinkInterface::getOptions function core/lib/Drupal/Core/Menu/ContextualLinkInterface.php Returns the link options passed to the link generator.
DisplayPluginBase::getOption function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Gets an option, from this display or the default display.
DisplayPluginInterface::getOption function core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php Gets an option, from this display or the default display.
DrupalTranslator::getOptions function core/lib/Drupal/Core/Validation/DrupalTranslator.php Returns options suitable for use with TranslatableMarkup.
FieldStorageConfig::getOptionsProvider function core/modules/field/src/Entity/FieldStorageConfig.php Gets an options provider for the given field item property.
FieldStorageDefinitionInterface::getOptionsProvider function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Gets an options provider for the given field item property.
FormatterPluginManager::getOptions function core/lib/Drupal/Core/Field/FormatterPluginManager.php Returns an array of formatter options for a field type.
LocalActionDefault::getOptions function core/lib/Drupal/Core/Menu/LocalActionDefault.php Returns options for rendering a link for the local action.
LocalActionInterface::getOptions function core/lib/Drupal/Core/Menu/LocalActionInterface.php Returns options for rendering a link for the local action.
LocalTaskDefault::getOptions function core/lib/Drupal/Core/Menu/LocalTaskDefault.php Returns options for rendering a link to the local task.
LocalTaskDefaultTest::testGetOptions function core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php @covers ::getOptions
LocalTaskInterface::getOptions function core/lib/Drupal/Core/Menu/LocalTaskInterface.php Returns options for rendering a link to the local task.
ManageOptions::getOptions function composer/Plugin/Scaffold/ManageOptions.php Gets the root-level scaffold options for this project.
MenuLinkAdd::getOptions function core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php Returns options for rendering a link for the local action.
MenuLinkBase::getOptions function core/lib/Drupal/Core/Menu/MenuLinkBase.php Returns the options for this link.
MenuLinkInterface::getOptions function core/lib/Drupal/Core/Menu/MenuLinkInterface.php Returns the options for this link.
OptionsWidgetBase::getOptions function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php Returns the array of options for the widget.
PoDatabaseReader::getOptions function core/modules/locale/src/PoDatabaseReader.php Get the options used by the reader.
PoDatabaseWriter::getOptions function core/modules/locale/src/PoDatabaseWriter.php Get the options used by the writer.
SessionConfiguration::getOptions function core/lib/Drupal/Core/Session/SessionConfiguration.php Returns a list of options suitable for passing to the session storage.
SessionConfigurationInterface::getOptions function core/lib/Drupal/Core/Session/SessionConfigurationInterface.php Returns a list of options suitable for passing to the session storage.
TranslatableMarkup::getOption function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets a specific option from this translated string.
TranslatableMarkup::getOptions function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets all options from this translated string.
UnroutedUrlTest::testGetOptions function core/tests/Drupal/Tests/Core/UnroutedUrlTest.php Tests the getOptions() method.
Url::getOption function core/lib/Drupal/Core/Url.php Gets a specific option.
Url::getOptions function core/lib/Drupal/Core/Url.php Returns the URL options.
UrlTest::testGetOptions function core/tests/Drupal/Tests/Core/UrlTest.php Tests the getOptions() method.
WidgetPluginManager::$widgetOptions property core/lib/Drupal/Core/Field/WidgetPluginManager.php An array of widget options for each field type.
WidgetPluginManager::getOptions function core/lib/Drupal/Core/Field/WidgetPluginManager.php Returns an array of widget type options for a field type.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.