You are here

public function ResourceFieldEntity::autoDiscovery in RESTful 7.2

File

src/Plugin/resource/Field/ResourceFieldEntity.php, line 1060
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity

Class

ResourceFieldEntity
Class ResourceFieldEntity.

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());
}