filterByContent($this->getContent()); } /** * {@inheritDoc} */ public function preInsert(ConnectionInterface $con = null) { $this->setPosition($this->getNextPosition()); return true; } /** * Set Image parent id * * @param int $parentId parent id * * @return $this */ public function setParentId($parentId) { $this->setContentId($parentId); return $this; } /** * Get Image parent id * * @return int parent id */ public function getParentId() { return $this->getContentId(); } public function preDelete(ConnectionInterface $con = null) { $this->reorderBeforeDelete( array( "content_id" => $this->getContentId(), ) ); return true; } /** * * return the complete breadcrumb for a given resource. * * @return array */ public function getBreadcrumb(Router $router, ContainerInterface $container, $tab) { return $this->getContentBreadcrumb($router, $container, $tab); } }