The getElementById()
method retrieves an element by its ID from the current node's children.
Description
public ElementNode::getElementById(string $id): ?ElementInterface
Parameters
id
The ID of the element to retrieve.
Return Value
Returns the element with the specified ID, or null
if no such element is found.
Exceptions
None