public function testSetProperty() { // prepare test data $this->rawLayout->add('root', null, 'root'); $this->rawLayout->add('header', 'root', 'header'); // do test $this->rawLayout->setProperty('header', 'some_property', 123); $this->assertEquals(123, $this->rawLayout->getProperty('header', 'some_property')); }
/** * {@inheritdoc} */ public function removeOption($id, $optionName) { $options = $this->rawLayout->getProperty($id, RawLayout::OPTIONS); $this->propertyAccessor->remove($options, $this->getPropertyPath($optionName)); $this->rawLayout->setProperty($id, RawLayout::OPTIONS, $options); }
/** * Checks whether the given block is a container for other blocks * * @param string $id * * @return bool */ protected function isContainerBlock($id) { return $this->typeHelper->isInstanceOf($this->rawLayout->getProperty($id, RawLayout::BLOCK_TYPE, true), ContainerType::NAME); }