protected function JsonldNormalizerTestBase::getEntityId

Get the Entity ID.

Parameters

Drupal\Core\Entity\EntityNG $entity: Entity to get URI for.

Return value

string Return the entity URI.

1 call to JsonldNormalizerTestBase::getEntityId()

File

drupal/core/modules/jsonld/lib/Drupal/jsonld/Tests/JsonldNormalizerTestBase.php, line 33
Definition of Drupal\jsonld\Tests\JsonldTestBase.

Class

JsonldNormalizerTestBase
Parent class for JSON-LD tests.

Namespace

Drupal\jsonld\Tests

Code

protected function getEntityId($entity) {
  global $base_url;
  $uriInfo = $entity
    ->uri();
  return $base_url . '/' . $uriInfo['path'];
}