You are here

interface ExplorableDecoratorInterface in RESTful 7.2

Class ExplorableDecorator.

@package Drupal\restful\Util

Hierarchy

Expanded class hierarchy of ExplorableDecoratorInterface

All classes that implement ExplorableDecoratorInterface

4 files declare their use of ExplorableDecoratorInterface
CacheDecoratedDataProvider.php in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.
DataProviderEntity.php in src/Plugin/resource/DataProvider/DataProviderEntity.php
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
ResourceDecoratorBase.php in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.
ResourceFieldResource.php in src/Plugin/resource/Field/ResourceFieldResource.php
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldResource.

File

src/Util/ExplorableDecoratorInterface.php, line 15
Contains \Drupal\restful\Util\ExplorableDecoratorInterface.

Namespace

Drupal\restful\Util
View source
interface ExplorableDecoratorInterface {

  /**
   * Checks if the decorated object is an instance of something.
   *
   * @param string $class
   *   Class or interface to check the instance.
   *
   * @return bool
   *   TRUE if the decorated object is an instace of the $class. FALSE
   *   otherwise.
   */
  public function isInstanceOf($class);

}

Members

Namesort descending Modifiers Type Description Overrides
ExplorableDecoratorInterface::isInstanceOf public function Checks if the decorated object is an instance of something. 3