setEndpointUrl example

'status' => TRUE,
    ])->removeComponent('thumbnail')
      ->setComponent($source_field->getName()[
        'type' => 'oembed',
        'settings' => $formatter_settings,
      ])
      ->save();

    $this->hijackProviderEndpoints();

    ResourceController::setResourceUrl($url$this->getFixturesDirectory() . '/' . $resource_url);
    UrlResolver::setEndpointUrl($url$resource_url);

    $entity = Media::create([
      'bundle' => $media_type->id(),
      $source_field->getName() => $url,
    ]);
    $entity->save();

    $this->drupalGet($entity->toUrl());
    $assert = $this->assertSession();
    $assert->statusCodeEquals(200);
    foreach ($selectors as $selector => $attributes) {
      
Home | Imprint | This part of the site doesn't use cookies.