public hasBlockDefinition ( string $blockIdentifier ) : boolean | ||
$blockIdentifier | string | |
return | boolean |
public function hasBlockDefinition($blockIdentifier)
{
return isset($this->blockDefinition[$blockIdentifier]);
}
/** * @dataProvider hasBlockDefinitionProvider * @covers eZ\Publish\Core\FieldType\Page\PageService::hasBlockDefinition * * @param string $blockIdentifier * @param bool $expectedResult */ public function testHasBlockDefinition($blockIdentifier, $expectedResult) { $this->assertSame($expectedResult, $this->pageService->hasBlockDefinition($blockIdentifier)); }