You are here

public function ResourceDecoratorBase::isEnabled in RESTful 7.2

Checks if the resource is enabled.

Return value

bool TRUE if the resource plugin is enabled.

Overrides ResourceInterface::isEnabled

1 method overrides ResourceDecoratorBase::isEnabled()
CacheDecoratedResource::isEnabled in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Checks if the resource is enabled.

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 312
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function isEnabled() {
  return $this->subject
    ->isEnabled();
}