PHP Class Neos\ContentRepository\Eel\FlowQueryOperations\FindOperation
Example (node name):
q(node).find('main')
Example (relative path):
q(node).find('main/text1')
Example (absolute path):
q(node).find('/sites/my-site/home')
Example (identifier):
q(node).find('#30e893c1-caef-0ca5-b53d-e5699bb8e506')
Example (node type):
q(node).find('[instanceof Neos.Neos.NodeTypes:Text]')
Example (multiple node types):
q(node).find('[instanceof Neos.Neos.NodeTypes:Text],[instanceof Neos.Neos.NodeTypes:Image]')
Example (node type with filter):
q(node).find('[instanceof Neos.Neos.NodeTypes:Text][text*="Neos"]')
显示文件
Open project: neos/neos-development-collection
Protected Properties
Public Methods
Protected 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 ) : void |
$flowQuery |
Neos\Eel\FlowQuery\FlowQuery |
the FlowQuery object |
$arguments |
array |
the arguments for this operation |
return |
void |
|
hasOnlyInstanceOfFilters()
protected method
Check if the parsed filters only contain instanceof filters (e.g. "[instanceof Foo],[instanceof Bar]")
Property Details
$nodeDataRepository protected_oe property
protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository |
return |
Neos\ContentRepository\Domain\Repository\NodeDataRepository |
|
$priority protected_oe static_oe property
protected static int $priority |
return |
integer |
|
$shortName protected_oe static_oe property
protected static string $shortName |
return |
string |
|