public function EnabledArrayIterator::accept in RESTful 7.2
Check whether the current element of the iterator is acceptable.
@link http://php.net/manual/en/filteriterator.accept.php
Return value
bool TRUE if the current element is acceptable, otherwise FALSE.
File
- src/
Resource/ EnabledArrayIterator.php, line 20 - Contains \Drupal\restful\Resource\EnabledArrayIterator.
Class
Namespace
Drupal\restful\ResourceCode
public function accept() {
if (!($resource = $this
->current())) {
return FALSE;
}
return $resource
->isEnabled();
}