You are here

protected function FieldRdfaTestBase::getAbsoluteUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php \Drupal\rdf\Tests\Field\FieldRdfaTestBase::getAbsoluteUri()

Gets the absolute URI of an entity.

Parameters

\Drupal\Core\Entity\ContentEntityBase $entity: The entity for which to generate the URI.

Return value

string The absolute URI.

3 calls to FieldRdfaTestBase::getAbsoluteUri()
EntityReferenceRdfaTest::setUp in core/modules/rdf/src/Tests/Field/EntityReferenceRdfaTest.php
Set the default field storage backend for fields created during tests.
EntityReferenceRdfaTest::testAllFormatters in core/modules/rdf/src/Tests/Field/EntityReferenceRdfaTest.php
Tests all the entity reference formatters.
FieldRdfaDatatypeCallbackTest::setUp in core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php
Set the default field storage backend for fields created during tests.

File

core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php, line 139
Contains \Drupal\rdf\Tests\Field\FieldRdfaTestBase.

Class

FieldRdfaTestBase

Namespace

Drupal\rdf\Tests\Field

Code

protected function getAbsoluteUri($entity) {
  return $entity
    ->url('canonical', array(
    'absolute' => TRUE,
  ));
}