You are here

public function ResourceFieldResource::autoDiscovery in RESTful 7.2

File

src/Plugin/resource/Field/ResourceFieldResource.php, line 376
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldResource.

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function autoDiscovery() {
  if (method_exists($this->decorated, 'autoDiscovery')) {
    return $this->decorated
      ->autoDiscovery();
  }
  return ResourceFieldBase::emptyDiscoveryInfo($this
    ->getPublicName());
}