Sulu\Component\Webspace\Manager\WebspaceManager::findPortalByKey PHP Метод

findPortalByKey() публичный Метод

Returns the portal with the given key.
public findPortalByKey ( string $key ) : Portal
$key string The key to search for
Результат Sulu\Component\Webspace\Portal
    public function findPortalByKey($key)
    {
        return $this->getWebspaceCollection()->getPortal($key);
    }

Usage Example

Пример #1
0
 public function testFindPortalByNotExistingKey()
 {
     $portal = $this->webspaceManager->findPortalByKey('not_existing');
     $this->assertNull($portal);
 }