convertToValue() публичный Метод

Converts the given $hash to a Value defined by the field type.
public convertToValue ( mixed $hash ) : Value
$hash mixed
Результат Value
Пример #1
0
 /**
  * Converts an $hash to the Value defined by the field type.
  *
  * @param mixed $hash
  *
  * @return \eZ\Publish\Core\FieldType\Page\Value
  */
 public function fromHash($hash)
 {
     if ($hash === null) {
         return $this->getEmptyValue();
     }
     return $this->hashConverter->convertToValue($hash);
 }