I'm trying to find if a page is used on more than one website on a multi-website Magento installation.
I have sucessfully return data of the page, but PageInterface has nothing like getStores() or getWebsites().
Here is my code:
public function getPageData($identifier){
$searchCriteria = $this->_searchCriteriaBuilder->addFilter('identifier', $identifier,'eq')->create();
$pages = $this->_pageRepositoryInterface->getList($searchCriteria)->getItems();
return $pages;
}
Thanks and Greetings!
searchCriteria
thencount
the result to verify it exists