public function getBlockFilter(BlockInterface $block)
    {
        $type = $block->getType();

        $name = isset($this->blockFilters[$type]) ? $this->blockFilters[$type] : $this->defaultFilter;
        $service = $this->getFilterService($name);

        if (!$service instanceof FilterInterface) {
            throw new \RuntimeException(sprintf('The service "%s" is not an exception filter', $name));
        }

        return $service;
    }
public function getBlockFilter(BlockInterface $block)
    {
        $type = $block->getType();

        $name = isset($this->blockFilters[$type]) ? $this->blockFilters[$type] : $this->defaultFilter;
        $service = $this->getFilterService($name);

        if (!$service instanceof FilterInterface) {
            throw new \RuntimeException(sprintf('The service "%s" is not an exception filter', $name));
        }

        return $service;
    }
public function getBlockFilter ( BlockInterface $ block ) { $ type = $ block -> getType ( ) ; $ name = isset ( $ this -> blockFilters [ $ type ] ) ? $ this -> blockFilters [ $ type ] : $ this -> defaultFilter ; $ service = $ this -> getFilterService ( $ name ) ; if ( ! $ service instanceof FilterInterface ) { throw new \ RuntimeException ( sprintf ( 'The service "%s" is not an exception filter' , $ name ) ) ; } return $ service ; }
Returns the exception filter for given block.

@param BlockInterface $block

@throws \RuntimeException

@return FilterInterface
Returns the exception filter for given block .