You are here

public function FieldCollectionItem::uri in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/Entity/FieldCollectionItem.php \Drupal\field_collection\Entity\FieldCollectionItem::uri()

Overrides \Drupal\Core\Entity\Entity::uri().

File

src/Entity/FieldCollectionItem.php, line 226

Class

FieldCollectionItem
Defines the field collection item entity class.

Namespace

Drupal\field_collection\Entity

Code

public function uri() {
  $ret = [
    'path' => 'field-collection-item/' . $this
      ->id(),
    'options' => [
      'entity_type' => $this->entityType,
      'entity' => $this,
    ],
  ];
  return $ret;
}