Sulu\Component\Content\Compat\PropertyInterface::setValue PHP Method

setValue() public method

sets the value from property.
public setValue ( $value )
$value mixed
    public function setValue($value);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function readForPreview($data, PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey)
 {
     if ($data !== null && $data !== false && $data !== 'false' && $data !== '') {
         $property->setValue(true);
     } else {
         $property->setValue(false);
     }
 }
All Usage Examples Of Sulu\Component\Content\Compat\PropertyInterface::setValue