function TestWithConstraints::getEntityConstraints

Same name in other branches
  1. 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints::getEntityConstraints()
  2. 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::getEntityConstraints()
  3. 10 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php \Drupal\media_test_source\Plugin\media\Source\TestWithConstraints::getEntityConstraints()

Overrides MediaSourceEntityConstraintsInterface::getEntityConstraints

File

core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithConstraints.php, line 26

Class

TestWithConstraints
Provides generic media type.

Namespace

Drupal\media_test_source\Plugin\media\Source

Code

public function getEntityConstraints() {
    return \Drupal::state()->get('media_source_test_entity_constraints', []);
}

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