public function getCollection() { $collection = $this->entity->getCollection(); if ($collection) { return $collection->getId(); } return; }