class TestWithConstraints
Same name in other branches
- 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints
- 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
- 10 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints
Provides generic media type.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\media\MediaSourceBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\media\MediaSourceInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\media_test_source\Plugin\media\Source\Test extends \Drupal\media\MediaSourceBase
- class \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints extends \Drupal\media_test_source\Plugin\media\Source\Test implements \Drupal\media\MediaSourceEntityConstraintsInterface, \Drupal\media\MediaSourceFieldConstraintsInterface
- class \Drupal\media_test_source\Plugin\media\Source\Test extends \Drupal\media\MediaSourceBase
- class \Drupal\media\MediaSourceBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\media\MediaSourceInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of TestWithConstraints
File
-
core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ TestWithConstraints.php, line 15
Namespace
Drupal\media_test_source\Plugin\media\SourceView source
class TestWithConstraints extends Test implements MediaSourceEntityConstraintsInterface, MediaSourceFieldConstraintsInterface {
/**
* {@inheritdoc}
*/
public function getEntityConstraints() {
return \Drupal::state()->get('media_source_test_entity_constraints', []);
}
/**
* {@inheritdoc}
*/
public function getSourceFieldConstraints() {
return \Drupal::state()->get('media_source_test_field_constraints', []);
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.