PHP Class Neos\ContentRepository\Eel\FlowQueryOperations\CacheLifetimeOperation
To include already hidden nodes (with a hiddenBeforeDateTime value in the future) in the result, also invisible nodes
have to be included in the context. This can be achieved using the "context" operation before fetching child nodes.
Example:
q(node).context({'invisibleContentShown': true}).children().cacheLifetime()
Show file
Open project: neos/neos-development-collection
Class Usage Examples
Protected Properties
Public Methods
Method Details
canEvaluate()
public method
public canEvaluate ( $context ) : boolean |
return |
boolean |
TRUE if the operation can be applied onto the $context, FALSE otherwise |
public evaluate ( FlowQuery $flowQuery, array $arguments ) : integer |
$flowQuery |
Neos\Eel\FlowQuery\FlowQuery |
The FlowQuery object |
$arguments |
array |
None |
return |
integer |
The cache lifetime in seconds or NULL if either no content collection was given or no child node had a "hiddenBeforeDateTime" or "hiddenAfterDateTime" property set |
Property Details
$final protected static property
protected static bool $final |
return |
boolean |
|
protected Now,Neos\Flow\Utility $now |
return |
Neos\Flow\Utility\Now |
|
$priority protected static property
protected static int $priority |
return |
integer |
|
$shortName protected static property
protected static string $shortName |
return |
string |
|