function TestWithConstraints::getSourceFieldConstraints
Same name in other branches
- 8.9.x core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints::getSourceFieldConstraints()
- 10 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints::getSourceFieldConstraints()
- 11.x core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints::getSourceFieldConstraints()
Overrides MediaSourceFieldConstraintsInterface::getSourceFieldConstraints
File
-
core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ TestWithConstraints.php, line 30
Class
- TestWithConstraints
- Provides generic media type.
Namespace
Drupal\media_test_source\Plugin\media\SourceCode
public function getSourceFieldConstraints() {
return \Drupal::state()->get('media_source_test_field_constraints', []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.