public function EntitySubqueue::hasItem in Entityqueue 8
Checks whether the subqueue has a given item.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An entity object
Return value
bool TRUE if the item was found, FALSE otherwise.
Overrides EntitySubqueueInterface::hasItem
File
- src/
Entity/ EntitySubqueue.php, line 298
Class
- EntitySubqueue
- Defines the EntitySubqueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public function hasItem(EntityInterface $entity) {
return $this
->getItemPosition($entity) !== FALSE;
}