Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ChainableFilter.php

Namespace

DeepCopy\Filter

File

vendor/myclabs/deep-copy/src/DeepCopy/Filter/ChainableFilter.php

View source
<?php

namespace DeepCopy\Filter;


/**
 * Defines a decorator filter that will not stop the chain of filters.
 */
class ChainableFilter implements Filter {
    
    /**
     * @var Filter
     */
    protected $filter;
    public function __construct(Filter $filter) {
        $this->filter = $filter;
    }
    public function apply($object, $property, $objectCopier) {
        $this->filter
            ->apply($object, $property, $objectCopier);
    }

}

Classes

Title Deprecated Summary
ChainableFilter Defines a decorator filter that will not stop the chain of filters.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal