PHP Class Neos\FluidAdaptor\ViewHelpers\Format\IdentifierViewHelper

Usually the identifier is the UUID of the object, but it could be an array of the identity properties, too.
See also: Neos\Flow\Persistence\PersistenceManagerInterface::getIdentifierByObject() Useful for using the identifier outside of the form view helpers (e.g. JavaScript and AJAX). = Examples = {post.blog -> f:format.identifier()} 97e7e90a-413c-44ef-b2d0-ddfa4387b5ca // depending on {post.blog} {identifier: '{someObject -> f:format.identifier()}'} {"identifier":"bf37f335-b273-4353-af77-fd8dc65cb66f"} // depending on the UUID of {someObject}
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeChildren boolean
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

Public Methods

Method Description
render ( object $value = null ) : mixed Outputs the identifier of the specified object

Method Details

render() public method

Outputs the identifier of the specified object
public render ( object $value = null ) : mixed
$value object the object to render the identifier for, or NULL if VH children should be used
return mixed the identifier of $value, usually the UUID

Property Details

$escapeChildren protected property

protected bool $escapeChildren
return boolean

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface