You are here

public function FieldCollectionItem::uri in Field collection 8.3

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

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

File

src/Entity/FieldCollectionItem.php, line 235

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;
}