Neos\ContentRepository\Domain\Model\NodeType::applyPostprocessing PHP Method

applyPostprocessing() protected method

Iterates through configured postprocessors and invokes them
protected applyPostprocessing ( ) : void
return void
    protected function applyPostprocessing()
    {
        if (!isset($this->fullConfiguration['postprocessors'])) {
            return;
        }
        foreach ($this->fullConfiguration['postprocessors'] as $postprocessorConfiguration) {
            $postprocessor = new $postprocessorConfiguration['postprocessor']();
            if (!$postprocessor instanceof NodeTypePostprocessorInterface) {
                throw new InvalidNodeTypePostprocessorException(sprintf('Expected NodeTypePostprocessorInterface but got "%s"', get_class($postprocessor)), 1364759955);
            }
            $postprocessorOptions = array();
            if (isset($postprocessorConfiguration['postprocessorOptions'])) {
                $postprocessorOptions = $postprocessorConfiguration['postprocessorOptions'];
            }
            $postprocessor->process($this, $this->fullConfiguration, $postprocessorOptions);
        }
    }