eZ\Publish\Core\FieldType\Page\PageService::hasZoneLayout PHP Method

hasZoneLayout() public method

Checks if zone definition contains a layout having $layoutIdentifier as identifier.
public hasZoneLayout ( string $layoutIdentifier ) : boolean
$layoutIdentifier string
return boolean
    public function hasZoneLayout($layoutIdentifier)
    {
        return isset($this->zoneDefinition[$layoutIdentifier]);
    }

Usage Example

 /**
  * @dataProvider hasZoneLayoutProvider
  * @covers eZ\Publish\Core\FieldType\Page\PageService::hasZoneLayout
  *
  * @param string $layout
  * @param bool $expectedResult
  */
 public function testHasZoneLayout($layout, $expectedResult)
 {
     $this->assertSame($expectedResult, $this->pageService->hasZoneLayout($layout));
 }