Neos\Flow\Mvc\Routing\ObjectPathMapping::setIdentifier PHP Метод

setIdentifier() публичный Метод

public setIdentifier ( string $identifier )
$identifier string
    public function setIdentifier($identifier)
    {
        $this->identifier = $identifier;
    }

Usage Example

 /**
  * Creates a new ObjectPathMapping and stores it in the repository
  *
  * @param string $pathSegment
  * @param string|integer $identifier
  * @return void
  */
 protected function storeObjectPathMapping($pathSegment, $identifier)
 {
     $objectPathMapping = new ObjectPathMapping();
     $objectPathMapping->setObjectType($this->objectType);
     $objectPathMapping->setUriPattern($this->getUriPattern());
     $objectPathMapping->setPathSegment($pathSegment);
     $objectPathMapping->setIdentifier($identifier);
     $this->objectPathMappingRepository->add($objectPathMapping);
     $this->objectPathMappingRepository->persistEntities();
 }
All Usage Examples Of Neos\Flow\Mvc\Routing\ObjectPathMapping::setIdentifier