eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::hasProcessor PHP Метод

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

Returns if a processor is registered for $fieldTypeIdentifier.
public hasProcessor ( string $fieldTypeIdentifier ) : boolean
$fieldTypeIdentifier string
Результат boolean
    public function hasProcessor($fieldTypeIdentifier)
    {
        return isset($this->processors[$fieldTypeIdentifier]);
    }

Usage Example

Пример #1
0
 /**
  * Parses the given $configurationHash using the FieldType identified by
  * $fieldTypeIdentifier.
  *
  * @param string $fieldTypeIdentifier
  * @param mixed $configurationHash
  *
  * @return mixed
  */
 public function parseValidatorConfiguration($fieldTypeIdentifier, $configurationHash)
 {
     if ($this->fieldTypeProcessorRegistry->hasProcessor($fieldTypeIdentifier)) {
         $fieldTypeProcessor = $this->fieldTypeProcessorRegistry->getProcessor($fieldTypeIdentifier);
         $configurationHash = $fieldTypeProcessor->preProcessValidatorConfigurationHash($configurationHash);
     }
     $fieldType = $this->fieldTypeService->getFieldType($fieldTypeIdentifier);
     return $fieldType->validatorConfigurationFromHash($configurationHash);
 }
All Usage Examples Of eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::hasProcessor