eZ\Publish\Core\FieldType\Page\Type::checkValueStructure PHP Method

checkValueStructure() protected method

Throws an exception if value structure is not of expected format.
protected checkValueStructure ( Value $value )
$value eZ\Publish\Core\FieldType\Value
    protected function checkValueStructure(BaseValue $value)
    {
        if (!$value->page instanceof Page) {
            throw new InvalidArgumentType('$value->page', 'eZ\\Publish\\Core\\FieldType\\Page\\Parts\\Page', $value->page);
        }
    }