eZ\Publish\Core\Search\Elasticsearch\Content\Mapper\StandardMapper::getObjectStateIds PHP Method

getObjectStateIds() protected method

Returns an array of object state ids of a Content with given $contentId.
protected getObjectStateIds ( integer | string $contentId ) : array
$contentId integer | string
return array
    protected function getObjectStateIds($contentId)
    {
        $objectStateIds = array();
        foreach ($this->objectStateHandler->loadAllGroups() as $objectStateGroup) {
            $objectStateIds[] = $this->objectStateHandler->getContentState($contentId, $objectStateGroup->id)->id;
        }
        return $objectStateIds;
    }