function MediaSourceBase::defaultConfiguration
Same name in other branches
- 8.9.x core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()
- 10 core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()
- 11.x core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()
Overrides ConfigurableInterface::defaultConfiguration
3 calls to MediaSourceBase::defaultConfiguration()
- MediaSourceBase::setConfiguration in core/
modules/ media/ src/ MediaSourceBase.php - Sets the configuration for this plugin instance.
- OEmbed::defaultConfiguration in core/
modules/ media/ src/ Plugin/ media/ Source/ OEmbed.php - Gets default configuration for this plugin.
- Test::defaultConfiguration in core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ Test.php - Gets default configuration for this plugin.
2 methods override MediaSourceBase::defaultConfiguration()
- OEmbed::defaultConfiguration in core/
modules/ media/ src/ Plugin/ media/ Source/ OEmbed.php - Gets default configuration for this plugin.
- Test::defaultConfiguration in core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ Test.php - Gets default configuration for this plugin.
File
-
core/
modules/ media/ src/ MediaSourceBase.php, line 121
Class
- MediaSourceBase
- Base implementation of media source plugin.
Namespace
Drupal\mediaCode
public function defaultConfiguration() {
return [
'source_field' => '',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.