You are here

protected function FormatterDependenciesTest::loadEntityDisplay in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/FormatterDependenciesTest.php \Drupal\Tests\video_embed_field\Kernel\FormatterDependenciesTest::loadEntityDisplay()

Load the entity display for the test entity.

Return value

\Drupal\Core\Entity\Display\EntityViewDisplayInterface The entity display for the test entity.

File

tests/src/Kernel/FormatterDependenciesTest.php, line 97

Class

FormatterDependenciesTest
Test the configuration dependencies are created correctly.

Namespace

Drupal\Tests\video_embed_field\Kernel

Code

protected function loadEntityDisplay() {
  return $this->entityTypeManager
    ->getStorage('entity_view_display')
    ->load('entity_test.entity_test.default');
}