AppserverIo\Appserver\Core\Api\VirtualHostService::load PHP Method

load() public method

Returns the virtual host with the passed UUID.
See also: ServiceInterface::load()
public load ( string $uuid ) : VirtualHostNode | null
$uuid string UUID of the virtual host to return
return AppserverIo\Appserver\Core\Api\Node\VirtualHostNode | null The virtual host with the UUID passed as parameter
    public function load($uuid)
    {
        foreach ($this->findAll() as $virtualHostNode) {
            if ($virtualHostNode->getPrimaryKey() == $uuid) {
                return $virtualHostNode;
            }
        }
    }
VirtualHostService