You are here

public function ResourceFieldCollection::valid in RESTful 7.2

File

src/Plugin/resource/Field/ResourceFieldCollection.php, line 204
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollection.

Class

ResourceFieldCollection

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function valid() {
  $key = key($this->fields);
  return $key !== NULL && $key !== FALSE;
}