PHP Класс 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.
См. также: 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}
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$escapeChildren boolean
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

Открытые методы

Метод Описание
render ( object $value = null ) : mixed Outputs the identifier of the specified object

Описание методов

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

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
Результат mixed the identifier of $value, usually the UUID

Описание свойств

$escapeChildren защищенное свойство

protected bool $escapeChildren
Результат boolean

$persistenceManager защищенное свойство

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface