findPortalByKey() public method

Returns the portal with the given key.
public findPortalByKey ( string $key ) : Portal
$key string The key to search for
return Sulu\Component\Webspace\Portal
Esempio n. 1
0
 public function testFindPortalByNotExistingKey()
 {
     $portal = $this->webspaceManager->findPortalByKey('not_existing');
     $this->assertNull($portal);
 }